Disabled Property

A Boolean value. Gets or sets the state of a menu item.

Applies to objects: Action

Syntax

[Let] RetVal = object.Disabled

[Let] object.Disabled = SetVal

The Disabled property syntax has these parts:

Part Description
object A reference to an instance of the object.
RetVal A Boolean type variable.
SetVal A Boolean value.

Remarks

If TRUE, the menu item is disabled, otherwise enabled.

Example

This example demonstrates using the Disabled property.

Dim s as Shape, MyAction as Action


' Assume shape with ID 1 exists on the active page.
' Assume the shape contains at least one Action.
s = thisDoc.ActivePage.ShapeByID(1)
' Get reference to an instance of the Action object. Set MyAction = s.Action(1)
' Set Disabled state MyAction.Disabled = True

 

See Also

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