Creating a Macro to Compact all .pst files

S

sfparadox

Can someone point me to an example of a macro that would:

Go through all open .pst files (I have about 20 pst files)
Empty the trash in each .pst file
Compact each .pst file


I'm using Outlook XP on Windows XP Pro SP1.

Outlook XP allegedly compacts automagically, though I have yet to
observe it doing so.

In any case, help on writing such a macro would be appreciated.

Thanks in advance.
 
K

Ken Slovak - [MVP - Outlook]

Compacting a PST file is not something you can control from code.
 

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