Groups2.Add method (Project)

Adds a Group2 object to a Groups2 collection.

Syntax

expression.Add (Name, FieldName)

expression An expression that returns a 'Groups2' object.

Parameters

Name Required/Optional Data type Description
Name Required String The name of the group.
FieldName Required String The name of the field being grouped by.

Return value

Group2

See also

Groups2 Collection Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.