the 2nd line was an example of how to use sendkeys
with a "dummy" dialog.
(normally you use sendkeys BEFORE opening the dialog..
Jim,
I can see what you want to do..
BUT I dont know an alternative approach to setting that value.
AND SENDKEYS is doomed to fail...
Just open that dialog yourself.
Select the 3rd tab.
Close the dialog.
Open the Dialog again..
See?... It's still on the 3rd tab.. but there's no way (without api's) to
tell which Tab is active. and the Tabs themselves have no accelerator...
Also IF the checkbox was already checked, your code will uncheck it..
FAIK the only alternative is complex code with API's to trap the dialog,
read the settings of the SysTabControl32 object.. etc etc.
keepITcool
< email : keepitcool chello nl (with @ and .) >
< homepage:
http://members.chello.nl/keepitcool >