Action Method

Returns an instance of the Action object that corresponds to the user-defined action and the associated menu item by its index in the user-defined action collection of the shape.

Applies to: Shape object

Syntax

[[Set] actionRet =] object.Action ( index )

The Action method syntax has these parts:

Part Description
object

Required. An expression that returns a Shape object.

index Required. An expression that returns a Long value. The index of the user-defined action in the user-defined action collection of the shape.
actionRet Optional. An Action type variable.

Remarks

If index is less than 1 or greater than the number of user-defined actions of the shape, the Action method returns Nothing. To find out the number of user-defined actions of the shape, use the ActionsNum method.

 

See Also

Action method, ActionsNum method, AddAction method, RemoveAction method, Action object