Programmatic import of PST

L

leo braginsky

Guys, my goal is to be able to import hundreds or possibly
thousands of PST in a programmatic fashion. I need to
create a Macro in my Outlook that would allow me to point
to the network directory where my PSTs are stored, press
button and have them all imported.

Has anyone done this before? Code snippets? Directions?

Thanks in advance

- leo
 
R

Roady [MVP]

Yikes, what are you trying to achieve? Why so many pst-files?

Note that the Outlook 97-2002 pst-format can only hold up to 2GB. The 2003
pst-format can by default hold up to 20GB but can be expanded to almost an
unlimited size.

For code suggestions you might want to repost this in the
outlook.program_vba group

--
Robert Sparnaaij [MVP-Outlook]
www.howto-outlook.com

Tips of the month:
-Backup and Restore
-Create an Office XP CD slipstreamed with Service Pack 3
 
K

Ken Slovak - [MVP - Outlook]

I don't know that I'd care to open that many information stores at one time,
it might hang Outlook. Outlook has an AddStore method that takes a file path
to the location of the PST file. If the file doesn't exist there it is
created and opened. So you can use NameSpace.AddStore method to do what you
want.

As a side note, storing PST files on a network drive can cause problems and
PST corruption if you are connected to the PST and the network drive becomes
unavailable. MS does not recommend or support storage of PST files on
network drives.
 
L

Lanwench [MVP - Exchange]

Import to what? If to Exchange, you can use exmerge to import PSTs to
mailboxes, providing they're all in the same folder & are named properly
(exchange_alias.pst)
 

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