Item Method (Shapes Collection)
Applies To
Shapes collection object.
Description
Returns a single Shape object from a Shapes collection.
Syntax
expression.Item(Index)
expression Required. An expression that returns a Shapes object.
Index Required Variant. The name or index number of the shape.
Example
This example sets the OnAction property for shape two in a Shapes collection. If the ss variable doesn't represent a Shapes object, this example fails.
ss.Item(2).OnAction = "ShapeAction"