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")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Userform 5
OUTLOOK 2010 VBA macro 0
Web Toolbar 2
ms access as a backend 1
How To Refer To Custom Folder in VBA 1
Copy Sheet 4
change the value of a combo box 2
Time Conversion 4

Top