Folders Object (Outlook)
Contains a set of Folder objects that represent all the available Outlook folders in a specific subset at one level of the folder tree.
The following Visual Basic for Applications (VBA) example returns the folder named Old Contacts.
Set myNameSpace = Application.GetNameSpace("MAPI") Set myFolder = _ myNameSpace.GetDefaultFolder(olFolderContacts) Set myNewFolder = myFolder.Folders("Old Contacts")
The following Visual Basic for Applications example returns the first folder.