Group2.MaintainHierarchy Property (Project)
Gets or sets a value that specifies whether hierarchy is maintained in the group view. Read/write Boolean.
Syntax
expression .MaintainHierarchy
expression An expression that returns a Group2 object.
Remarks
The MaintainHierarchy property corresponds to the Maintain Hierarchy in Current Group option in the Group by drop-down list on the View tab of the Project Ribbon.
Example
The following example displays the name of the second Group2 object in the TaskGroups2 collection, and then displays the setting for the MaintainHierarchy property in the Immediate window.
Debug.Print ActiveProject.TaskGroups2(2).Name
Debug.Print ActiveProject.TaskGroups2(2).MaintainHierarchy