Share via


Group.GroupCriteria Property

Project Developer Reference

Returns or sets a GroupCriteria collection representing the fields in a group definition. Read/write.

Syntax

expression.GroupCriteria

expression   A variable that represents a Group object.

Return Value
GroupCriteria

Example
This example adds another criterion to the specified resource group, grouping resources in ascending order as determined by the percentage of their work (in 5% increments) that is complete.

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