Skip to content

Latest commit

 

History

History
57 lines (29 loc) · 1 KB

Project.Group2.Index.md

File metadata and controls

57 lines (29 loc) · 1 KB
title ms.service api_name ms.assetid ms.date ms.localizationpriority
Group2.Index property (Project)
project-server
Project.Group2.Index
a7d4ec3e-825b-87c8-d7bb-a61984ba7ace
06/08/2017
medium

Group2.Index property (Project)

Gets the index of a Group2 object in a ResourceGroups2 collection or TaskGroups2 collection. Read-only Long.

Syntax

expression.Index

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

[!includeSupport and feedback]