Item Method (Shapes Collection) 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
ss.Item(2).OnAction = "ShapeAction"