Deleting multiple Deleted Items folders with a single command. Pls

J

jammy

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,
 
D

Diane Poremsky [MVP]

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 by email:
mailto:[email protected]

EMO - a weekly newsletter about Outlook and Exchange:
mailto:[email protected]

Let's Really Fix Outlook 2010
http://forums.slipstick.com/forumdisplay.php?f=34
 
J

jammy

Thanks! Will give it a try. When I turned archiving for the Deleted Items
folders, it forced me to set a default autoarchive period of 14 days. I went
to Tools --> Options and made the default autoarchive do nothing. I assume
that the individual archives for the Deleted Items will still be performed.

Diane Poremsky said:
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 by email:
mailto:[email protected]

EMO - a weekly newsletter about Outlook and Exchange:
mailto:[email protected]

Let's Really Fix Outlook 2010
http://forums.slipstick.com/forumdisplay.php?f=34

jammy said:
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,
 
D

Diane Poremsky [MVP]

You need to set the option to run every xx days in tools, options, other,
autoarchive. Set the default to 60 months so it skips other folders and set
the properties of any folder you absolutely do not want archived to not
archive that folder.

--
Diane Poremsky [MVP - Outlook]



Outlook Tips by email:
mailto:[email protected]

EMO - a weekly newsletter about Outlook and Exchange:
mailto:[email protected]

Let's Really Fix Outlook 2010
http://forums.slipstick.com/forumdisplay.php?f=34

jammy said:
Thanks! Will give it a try. When I turned archiving for the Deleted Items
folders, it forced me to set a default autoarchive period of 14 days. I
went
to Tools --> Options and made the default autoarchive do nothing. I assume
that the individual archives for the Deleted Items will still be
performed.

Diane Poremsky said:
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 by email:
mailto:[email protected]

EMO - a weekly newsletter about Outlook and Exchange:
mailto:[email protected]

Let's Really Fix Outlook 2010
http://forums.slipstick.com/forumdisplay.php?f=34

jammy said:
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,
 

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