Re: Auto purge deleted items script ...

S

Sue Mosher [MVP]

The only way I know of to do this is to use CommandBars to execute the Edit | Purge Deleted Items command (ID = 5583, courtesy of Outlook Spy).
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP]

No, I mean you need to use the CommandBars collection and the specific ID to get the object that represents that toolbar button. Then you can use the CommandBarButton.Execute method to "click" that button. Outlook Spy (http://www.dimastr.com) is an essential Outlook development tool that lets you look up the ID for any toolbar button in seconds (among other features.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top