Refering to a folder

B

Bre-x

I created a folder under the "Personal Folders" root

How do I refer to it using VBA?


Bre-x
 
S

Sue Mosher [MVP-Outlook]

Use the GetDefaultFolder method and Parent and Folders properties to walk up
and down the folder hierarchy, e.g.:

Set inbox = Application.Session.GetDefaultFolder(olFolderInbox)
Set root = inbox.Parent
Set myFolder = root.Folders("Name of My Folder")
 
Top