PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins Default .pst

Reply

Default .pst

 
Thread Tools Rate Thread
Old 07-03-2006, 07:25 AM   #1
mwernerps2 via OfficeKB.com
Guest
 
Posts: n/a
Default Default .pst


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
  Reply With Quote
Old 07-03-2006, 02:39 PM   #2
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Default .pst

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@uwe> wrote in message
news:5ce327da36543@uwe...
>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


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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