Application.GroupMaintainHierarchy method (Project)
Shows or hides item hierarchy in task views or resource views where a group is applied.
expression An expression that returns an Application object.
|On||Required||Boolean||True if hierarchy in the current group is maintained. False if hierarchy is not maintained.|
The GroupMaintainHierarchy method corresponds to the following command on the ribbon: On the View tab, click the Group by drop-down list in the Data group, and then click Maintain Hierarchy in Current Group.
For example, if tasks are grouped by the Critical group, the
GroupMaintainHierarchy True command shows the summary tasks in the Critical: No and Critical: Yes groups. The
GroupMaintainHierarchy False command hides summary tasks in the groups. If no group is applied to the view, GroupMaintainHierarchy has no effect.
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.