Remove Method (ActiveX Controls)

       

Removes a specific member from a collection.

Syntax

object.Remove index

The Remove method syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
index An integer or string that uniquely identifies the object within the collection. Use an integer to specify the value of the Index property; use a string to specify the value of the Key property.

Remarks

To remove all the members of a collection, use the Clear method.