GroupCriterion2.Index Property (Project)
Gets the index of an object in its containing collection. Read-only Long.
Syntax
expression .Index
expression An expression that returns a GroupCriterion2 object.
Example
If you always put a Gantt chart in the same index of a project's Windows collection, you can display a Gantt chart in one project and then use this macro to easily switch to the Gantt charts of your other projects.