Reference to PST files

G

Guest

Hello!

I have an archived PST file open in my Outlook, and I am trying to write
code that will enable me to edit properties of the email items inside this
PST file. I have been using

Set Ns = GetNamespace("MAPI")
Set Inbox = Ns.GetDefaultFolder(olFolderInbox)

but obviously that code only allows you to access the inbox folder in the
MAPI server.

Can anyone help, please? Thanks in Advance.
 
D

Dmitry Streblechenko

Use the Namespace.AddStore method to add a PST file not yet in thee current
profile. Otherwise use the Namespace.Folders collection to iterate through
the top level folders of the stores in the current profile.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

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