title | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | |
---|---|---|---|---|---|---|
Group2.Name property (Project) |
project-server |
|
27110629-c022-3587-7b9c-c33fbd323a11 |
06/08/2017 |
medium |
Gets or sets the name of a Group2 object. Read/write String.
expression.Name
expression An expression that returns a Group2 object.
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
[!includeSupport and feedback]