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.
-- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm
"mwernerps2 via OfficeKB.com" <u10791[ at ]uwe> wrote in message news:5ce327da36543[ at ]uwe...
[Quoted Text] >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! > > > -- > Message posted via http://www.officekb.com
|