ref: vbMAPI_Folders

On this page you'll find:

Overview

Equivalent MAPI object: IMAPITable
Equivalent Outlook Redemption object: Redemption.RDOFolders
Equivalent Outlook Object Model object: Outlook.Folders
Parent: vbMAPI_Folder

Class Description

Use this object to access and create new sub-folders through the Item and Add methods respectively. Preferably, use the For-Each syntax to enumerate the collection.


Property Get Count() As Long

Returns the count of items in this collection.

Property Get Item(ByVal IndexOrName As Variant) As vbMAPI_Folder

Returns the item in the collection corresponding to the provided Index (Long) or Name (String).

Property Get Session() As vbMAPI_Session

Returns the session object associated with this object.

Function Add(ByVal FolderName As String) As vbMAPI_Folder

Adds a new sub folder to the folder, and returns a vbMAPI_Folder object representing the new object.