Macro to export personal folders

T

Tom Ross

Hi

How would I write a macro to automate an export command?

I want to export the 'Outlook Today' personal folders file
Including subfolders
to C:\backfolder\outlook.pst
and Don't import duplicates.

I use Visual Basic and Visual Basic with Access but don't know what objects
and methods to use in Outlook.

Is there a knowledgebase somewhere that will help

Thanks

Tom
 
N

neo [mvp outlook]

The import/export engine is not exposed to developers. You would need to
write your own method of mounting a personal folder file, copying items from
the public folder to the personal folder file, and then remove it. If you
are using Outlook 2000 or newer, the methods you are after are
AddStore/RemoveStore that is exposed by the Namespace object.

/Neo

PS - In Outlook 2000, one of the methods is hidden.
 

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