Create Method

See Also Applies To Example Model

Creates and adds new objects to a collection.

object expression.Create (HowMany)

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

HowMany    Required Long. The number of new objects to create.

Remarks

If the parameter HowMany is 1, then the method returns a Bot object, otherwise returns a Group object.

Example

The following example creates 100 new Bot objects and adds them to a Group called "BlueTeam".

Set BlueTeam = Bots.Create (100)
BlueTeam.Color = vbtBlue