View Single Post
  #4  
Old May 19th 08, 12:59 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Access to Outlook data files

See http://www.outlookcode.com/codedetail.aspx?id=84 for a code sample. Note that AddStore would be used to open a .pst file that the user is not already using. For one already in use in the current profile, you'd access it as you would any other store or non-default folders -- through the Namespace.Folders collection.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Paul Wu" wrote in message ...

Could you show me how to use Namespace.AddStore to open .pst file?

--
Developer


"Sue Mosher [MVP-Outlook]" wrote:

No, it's not possible. You would instead use the Namespace.AddStore method to open the .pst file. Note, though, that Microsoft supports only ...pst files on local drives, not network access.



"Steve" wrote in message ...
We archive old email in PST files to get them off exchange. if a user has
several mailbox's open it's no problem to get access to their folders via
GetSharedDefaultFolder, however if a user has an outlook data file open (PST)
i can't see a way to get access to it via GetSharedDefaultFolder, i can't
resolve the name. should this be possible?
Thanks,
Steve


Ads