Group2 Object (Project)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Represents a group definition where the group hierarchy can be maintained. A Group2 object is a member of a Groups2, ResourceGroups2, or TaskGroups2 collection.

The Group2 object includes the MaintainHierarchy property.

Using the Group Object

Use TaskGroups2(Index) or ResourceGroups2(Index), where Index is the group definition index or group definition name, to return a Group2 object.

The following example ensures that the Standard Rate resource group displays summary task information.

ActiveProject.ResourceGroups2("Standard Rate").ShowSummary = True