View Single Post
  #4  
Old March 3rd 10, 09:20 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default code for adding data file

No, it's absolutely not supported at all. PST files anywhere other than on a
local hard drive are totally unsupported. I would strongly recommend against
what you plan and how you store the archive PST's.

If you add a PST file, either in the UI or in code, it will be there in
Outlook and show up until Outlook is closed. If it was removed prior to
closing Outlook it won't show up or fire errors starting Outlook if the PST
isn't available. If it is not removed prior to shutdown there will be errors
if the PST is not available.

There is a RemoveStore() method that takes a file path, but the user would
have to run that code before shutting down Outlook.

If something in this causes corruption, data loss or the inability to open
the PST file don't be surprised and don't expect anyone to help you. Expect
any MVP to tell you that what you did was unsupported. If you still want to
do this you're on your own.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"joe schmo" wrote in message
...
Actually we all have archive pst files on a server. This is to reduce the
working copy in exchange. we are using outlook 2003 and 07. I just want
the user to not see the archives when she goes home with laptop, and then
see
them when she comes into work (server accessible). I'm pretty sure this
is
supported though....standard procedure no?

otherwise, I'll work with your code, thanks!


Ads