Folder.Name property (Outlook)
Returns or sets a String value that represents the display name for the object. Read/write.
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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.