Rather than mess with VBA, especially if you have to rely on others to write
it for you, why not set up autoarchive to delete items from the deleted
items folders? Set it to run daily and delete items older than a day. A
benefit is that it won't delay outlook's shutdown, as the empty on exit and
a vba macro would.
See
http://www.outlook-tips.net/archives/2003/20030918.htm for the basics.
--
Diane Poremsky [MVP - Outlook]
Outlook Tips:
http://www.outlook-tips.net/
Outlook & Exchange Solutions Center:
http://www.slipstick.com
Outlook Tips by email:
mailto:dailytips-subscribe-(E-Mail Removed)
EMO - a weekly newsletter about Outlook and Exchange:
mailto:EMO-NEWSLETTER-SUBSCRIBE-(E-Mail Removed)
Let's Really Fix Outlook 2010
http://forums.slipstick.com/forumdisplay.php?f=34
"jammy" <(E-Mail Removed)> wrote in message
news:C973F1F8-74DD-4879-9D49-(E-Mail Removed)...
> I have several pop accounts that I have activated in Outlook. When I exit,
> I
> would like not only the main Deleted Items folder to be emptied, but all
> other Deleted Items folders in my individual .pst files. Is there a VBA
> script I can use to do this? Not good enough at VBA to write one myself,
> but
> if someone sends me a generic skeleton, I could probably play around with
> it
> and customize it to my accounts.
>
> Thanks,
>