Default .pst

  • Thread starter Thread starter mwernerps2 via OfficeKB.com
  • Start date 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!
 
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.
 
Back
Top