Item Method (ShapeRange Collection) 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"