Share via


Copy Method

Makes a copy of a group definition for the TaskGroups or ResourceGroups collection (Syntax 1), or for the Filters, Tables, or Views collection (Syntax 2), and returns a reference to the new object.

Syntax 1

Makes a copy of a group definition and returns a reference to the Group object.

expression**.Copy(Name, NewName)**

*expression   *     Required. An expression that returns a TaskGroups or ResourceGroups collection.

Name    Required String. The name of the group definition to copy.

NewName    Required String. The name of the new group definition.

Syntax 2

Makes a copy of a group definition and returns a reference to a Filter, Table, or View object.

expression**.Copy(Source, NewName)**

*expression   *     Required. An expression that returns a Filters, Tables, or Views collection.

Source    Required String. The name of the filter, table, or view to copy.

NewName    Required String. The name of the new filter, table, or view.

Applies to | Filter Object, Filters Collection Object | Group Object, Groups Collection Object | Table Object, Tables Collection Object | View Object, Views Collection Object | ViewCombination Object, ViewsCombination Collection Object | ViewSingle Object, ViewsSingle Collection Object

See Also | CurrentGroup Property | Groups Method | ResourceGroups Property | TaskGroups Property