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

See also

Group2 Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.