Intersect Method

See Also Applies To Example Model

Returns the intersection of two collections as a new collection.

object expression.Intersect (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 called "MembersInBoth" which is formed by the intersection of two other Group objects.

Set MembersInBoth = GroupA.Intersect (GroupB)