Default .pst

  • Thread starter mwernerps2 via OfficeKB.com
  • Start date
M

mwernerps2 via OfficeKB.com

I want to add a folder to the default .PST file. When I GetFolders then
GetFirst from the default namespace I do not always get the default root (pst)
folder that contains the default inbox, etc. How do I get the default? Thanks!
 
K

Ken Slovak - [MVP - Outlook]

NameSpace.GetDefaultFolder(olFolderInbox).Parent will return a MAPIFolder
object that represents the top of store of that PST file. Use that
MAPIFolder's Folders collection and its Add method to add a new folder at
the same level as Inbox or Calendar, etc.
 

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