Action Property

A Byte value. Gets or sets the result of the formula, assigned to the shape.

Applies to objects: Action

Syntax

[Let] RetVal = object.Action

[Let] object.Action = SetVal

The Action property syntax has these parts:

Part Description
object A reference to an instance of the shape.
RetVal A Byte value, the result of execution of the formula.
SetVal A Byte value, the result of execution of the formula.

Remarks

To set the formula, use the SetPropertyFormula method of the Shape Object.

Example

This example demonstrates how the Action property can be used.

Dim s as Shape, MyAction as Action


' Assume the shape with ID 1 is on the active page.
' Also assume the shape contains at least one action. 
s = thisDoc.ActivePage.ShapeByID(1)
' Take reference to an instance of the Action object Set MyAction = s.Action(1)
' Output the result of the funciton defined in the action. trace MyAction.Action

 

See Also

Action Object, Shape Object, SetPropertyFormula Method, ActionsNum Method, AddAction Method, Action Method, RemoveAction Method