Folder.Name Property

Outlook Developer Reference

Returns or sets the display name for the object. Read/write.

Version Information
 Version Added:  Outlook 2007

Syntax

expression.Name

expression   A variable that represents a Folder object.

Example

This Visual Basic for Applications (VBA) example uses the Name property to obtain the name of the folder displayed in the active explorer.

Visual Basic for Applications
  Sub DisplayCurrentFolderName()
    Dim myExplorer As Outlook.Explorer
    Dim myFolder As Outlook.Folder
    
    Set myExplorer = Application.ActiveExplorer
    Set myFolder = myExplorer.CurrentFolder
    MsgBox myFolder.Name
End Sub

See Also