Re: Auto purge deleted items script ...

  • Thread starter Thread starter Sue Mosher [MVP]
  • Start date Start date
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
 
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
 
Back
Top