Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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
© 2015 Microsoft