PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Macro to export personal folders

Reply

Macro to export personal folders

 
Thread Tools Rate Thread
Old 19-09-2003, 09:37 PM   #1
Tom Ross
Guest
 
Posts: n/a
Default Macro to export personal folders


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


  Reply With Quote
Old 21-09-2003, 12:24 AM   #2
Sue Mosher [MVP]
Guest
 
Posts: n/a
Default Re: Macro to export personal folders

You might find the code samples at http://www.slipstick.com/dev/customimport.htm#samples useful.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Tom Ross" <tomross@pipebendersinc.com> wrote in message news:OuD8q3ufDHA.1700@TK2MSFTNGP10.phx.gbl...
> 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
>
>

  Reply With Quote
Old 22-09-2003, 05:27 AM   #3
neo [mvp outlook]
Guest
 
Posts: n/a
Default Re: Macro to export personal folders

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.

"Tom Ross" <tomross@pipebendersinc.com> wrote in message
news:OuD8q3ufDHA.1700@TK2MSFTNGP10.phx.gbl...
> 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
>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off