Subtract Method

See Also Applies To Example Model

Removes members of the collection which are also members of another collection and returns the results as a new collection.

object expression.Subtract (Object)

object expression    Required. An object expression that evaluates to an object in the Applies To list.

Object    Required. Either a Group or Region object.

Example

The following example creates a new Group object which consists of Bot objects which are in GroupA but not in GroupB.

Set NewGroup = GroupA.Subtract (GroupB)