Folders Collection Object

Description

A collection of MAPIFolder objects that represent all the available Outlook folders.

Using the Folders Collection

Use the Folders property to return the Folders collection from a NameSpace object or another MAPIFolder object.

Use Folders(index), where index is the name or index number, to return a single MAPIFolder object. Folder names are case-sensitive. The following example returns the folder named "Inbox" from myFolder

Set myNewFolder = myFolder.Folders("Inbox")
The following example returns the first folder in myFolder.

Set myNewFolder = myFolder.Folders(1)
Properties

Count property.

Methods

Add method (Folders object), Item method, Remove method.