PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Closing Outlook Programmatically
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
Closing Outlook Programmatically
![]() |
Closing Outlook Programmatically |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
I've got a script that deletes the Outlook address cache file, but I need to
close Outlook before I can do this. The powers that be want the enitre process automated, so I need to close Outlook from the script. Closing the app is not a problem, but is there a way to supress the prompt for emtying the trash? (Corp policy is to have Outlook prompt when closing and I can't change corp policy... Nooo... wouldn't want to do that!) So I need a way around it programmatically. Help? Jerry |
|
|
|
#2 |
|
Guest
Posts: n/a
|
You might be able to use some of the window handle functions in the Win32
API (GetWindowHandle?) to pass the focus to the empty trash dialog. Then you can try using SendKeys to click away the prompt. Might work, might not - SendKeys can be tricky. -- Eric Legault - B.A, MCP, MCSD, Outlook MVP Job: http://www.imaginets.com Blog: http://blogs.officezealot.com/legault "Jerry Camel" <rlrcstr@msn.com> wrote in message news:uu3HxTk9DHA.1392@tk2msftngp13.phx.gbl... > I've got a script that deletes the Outlook address cache file, but I need to > close Outlook before I can do this. The powers that be want the enitre > process automated, so I need to close Outlook from the script. Closing the > app is not a problem, but is there a way to supress the prompt for emtying > the trash? (Corp policy is to have Outlook prompt when closing and I can't > change corp policy... Nooo... wouldn't want to do that!) So I need a way > around it programmatically. Help? > > Jerry > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

