Share via


Folder.Name Property (Outlook)

Returns or sets a String value that represents 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.

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

Concepts

Folder Object

Folder Object Members