Refering to a folder

  • Thread starter Thread starter Bre-x
  • Start date Start date
B

Bre-x

I created a folder under the "Personal Folders" root

How do I refer to it using VBA?


Bre-x
 
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")
 
Back
Top