Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / May 2008

Tip: Looking for answers? Try searching our database.

Access to Outlook data files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve - 11 Aug 2006 11:17 GMT
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
Sue Mosher [MVP-Outlook] - 11 Aug 2006 12:26 GMT
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.

Signature

Sue Mosher, Outlook MVP
  Author of Configuring Microsoft Outlook 2003
    http://www.turtleflock.com/olconfig/index.htm
  and Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx
 

> 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
[quoted text clipped - 3 lines]
> Thanks,
> Steve
Paul Wu - 19 May 2008 07:03 GMT
Could you show me how to use Namespace.AddStore to open .pst file?

Signature

Developer

> 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.
>
[quoted text clipped - 5 lines]
> > Thanks,
> > Steve
Sue Mosher [MVP-Outlook] - 19 May 2008 12:59 GMT
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.

Signature

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

> Could you show me how to use Namespace.AddStore to open .pst file?
>
>> 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.

>>    
>> > We archive old email in PST files to get them off exchange. if a user has
[quoted text clipped - 4 lines]
>> > Thanks,
>> > Steve
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.