Table of contents
Collapse the table of content
Expand the table of content

Group2.MaintainHierarchy Property (Project)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Gets or sets a value that specifies whether hierarchy is maintained in the group view. Read/write Boolean.


expression. MaintainHierarchy

expression An expression that returns a Group2 object.


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.


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

© 2018 Microsoft