A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Access to Outlook data files



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 11th 06, 11:17 AM posted to microsoft.public.outlook.program_vba
steve
external usenet poster
 
Posts: 317
Default Access to Outlook data files

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
  #2  
Old August 11th 06, 12:26 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Access to Outlook data files

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.

--
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

"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

  #3  
Old May 19th 08, 07:03 AM posted to microsoft.public.outlook.program_vba
Paul Wu
external usenet poster
 
Posts: 1
Default Access to Outlook data files


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.

--
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

"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


  #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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to copy data from Voting Button to MS Access Data NIMISH Outlook - General Queries 1 July 27th 06 12:12 AM
Link Outlook data to Access Shellie Outlook - Using Contacts 1 May 24th 06 05:11 PM
Link Outlook data to Access Shellie Outlook - Using Contacts 2 May 22nd 06 09:01 PM
outlook and access data integration David Outlook - Using Forms 0 February 27th 06 03:22 PM
Outlook Data Files Shauna T Outlook - General Queries 3 January 8th 06 11:55 AM


All times are GMT +1. The time now is 08:11 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.