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?