Macro to export personal folders

  • Thread starter Thread starter Tom Ross
  • Start date Start date
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
 
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.
 
Back
Top