I forgot to mention that I had to change to oShell.AppActivate("Microsoft Office Outlook") from oShell.AppActivate("Microsoft Outlook"). I found somewhere in my search that the warning screen was purposely made inactive for 5 seconds as part of security.
>Sammie,
>
>Unfortunately I do not have OL 2003 version to play with. So, at the moment, I cannot reproduce the behavior and come up with any new idea. You may follow my original post: try to set the exact dialog window title in the oShell.AppActivate(WINDOW TITLE), or continue to play with other key combinations.
>
>
>>Your suggestion worked but I had to put a 6 second delay before sending the TABS and ENTER to give the warning screen time to become active.
>>>Try to find the appropriate key combination and replace the "Y" in sendkeys.
>>>If " tab tab and an enter" work, then this should work:
>>>
>>>oShell.sendkeys("{TAB}{TAB}{ENTER}")
>>>
>>>
>>>
>>>>I have been using your yforceol.exe with Office 2000 to send emails from within another application. All was well. Now I have Office 2003 and the yforceol.exe starts as it should but sending the "Y" doesn't close the warning screen. I tried a "Y" from the keyboard and that doesn't work either. The default comes up with focus on the "No" button and it takes a click on the "Yes" (or tab tab) and an enter. Any suggestions on modifying your program to work with 2003?