Outlook) (Folder.Name 属性

返回或设置一个 String 值,该值代表对象的显示名称。 读/写。

语法

表达式名字

表达 一个代表 Folder 对象的变量。

示例

此 Visual Basic for Applications (VBA) 示例使用 Name 属性来获取显示在活动资源管理器中的文件夹的名称。

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

另请参阅

文件夹对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。