Group2.Name 属性 (Project)

获取或设置 组 2 对象的名称。 读/写 String

语法

表达式名字

表达 返回 Group2 对象的表达式。

示例

以下示例在“即时”窗口中显示 TaskGroups2 集合中每个 Group2 对象的名称。

Sub ListTaskGroups() 

 Dim groupIndex As Integer 

 Dim numTaskGroups As Integer 

 

 numTaskGroups = ActiveProject.TaskGroups2.Count 

 

 For groupIndex = 1 To numTaskGroups 

 Debug.Print ActiveProject.TaskGroups2(groupIndex).Name 

 Next groupIndex 

End Sub

另请参阅

组 2 对象

支持和反馈

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