Skip to content

Latest commit

 

History

History
49 lines (28 loc) · 1.2 KB

Project.Group2.MaintainHierarchy.md

File metadata and controls

49 lines (28 loc) · 1.2 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Group2.MaintainHierarchy property (Project)
vbapj.chm132400
vbapj.chm132400
project-server
Project.Group2.MaintainHierarchy
47706f83-abd6-dd6b-0dff-41e260cf1107
06/08/2017
medium

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

[!includeSupport and feedback]