The Name property returns the name of the Folder object as a string. Read-only.
objFolder.Name
String
Dim objInbox As Folder ' assume valid Dim objOutbox As Folder ' assume valid ' assume valid Session object Set objInbox = objSession.GetDefaultFolder(CdoDefaultFolderInbox) Set objOutbox = objSession.GetDefaultFolder(CdoDefaultFolderOutbox) MsgBox "Inbox name = " & objInbox.Name MsgBox "Outbox name = " & objOutbox.Name