Group2.Name property (Project)

Gets or sets the name of a Group2 object. Read/write String.

Syntax

expression.Name

expression An expression that returns a Group2 object.

Example

The following example displays the name of each Group2 object in the TaskGroups2 collection in the Immediate window.

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

See also

Group2 Object

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.