This documentation is archived and is not being maintained.

Folder.Name Property (Outlook)

Returns or sets a String value that represents the display name for the object. Read/write.

Version Added: Outlook 2007

expression .Name

expression A variable that represents a Folder object.

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

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