Item Method (ShapeRange Collection)

Applies To

ShapeRange collection object.

Description

Returns a single Shape object from a ShapeRange object.

Syntax

expression.Item(Index)

expression Required. An expression that returns a ShapeRange object.

Index Required Variant. The name or index number of the shape.

Example

This example sets the OnAction property for shape two in a shape range. If the sr variable doesn't represent a ShapeRange object, this example fails.

sr.Item(2).OnAction = "ShapeAction"