Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1.16 KB

Project.GroupCriterion.GroupOn.md

File metadata and controls

41 lines (25 loc) · 1.16 KB
title ms.service api_name ms.assetid ms.date ms.localizationpriority
GroupCriterion.GroupOn property (Project)
project-server
Project.GroupCriterion.GroupOn
dd36cf16-9306-4cc7-904b-9e2ae364722f
06/08/2017
medium

GroupCriterion.GroupOn property (Project)

Gets or sets the type of grouping for a field used as a criterion in a group definition. Read/write PjGroupOn.

Syntax

expression. GroupOn

expression A variable that represents an GroupCriterion object.

Remarks

The GroupOn property can be one of the PjGroupOn constants.

Example

The following example adds a criterion to the specified resource group, grouping resources in ascending order as determined by the percentage of their work that is complete. The GroupOn argument specifies that grouping is by a percentage interval.

Sub AddCriterionWithInterval() 
 ActiveProject.ResourceGroups("Response Pending").GroupCriteria.Add "% Work Complete", 
 True, CellColor:=pjRed, GroupOn:=pjGroupOnPctInterval, StartAt:=5, GroupInterval:=5 
End Sub

[!includeSupport and feedback]