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

Group2.GroupCriteria Property (Project)

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

Gets or sets the GroupCriteria2 collection representing the fields in a group definition. Read/write GroupCriteria2.


expression. GroupCriteria

expression An expression that returns a Group2 object.


The following example lists all of the group criteria in the second Group2 object of the TaskGroups2 collection.

Sub ListCriteria() 

 Dim criterionNum As Integer 

 Dim criteria As GroupCriteria2 

 Dim criterion As GroupCriterion2 

 Set criteria = ActiveProject.TaskGroups2(2).GroupCriteria 

 criterionNum = 1 

 For Each criterion In criteria 

 Debug.Print "Criterion " &; criterionNum &; ", Field name: " &; criterion.FieldName 

 criterionNum = criterionNum + 1 

 Next criterion 

End Sub

See also


Group2 Object

© 2018 Microsoft