Checked Property

A Boolean value. Gets and sets the state of a check mark beside the command name on the menu.

Applies to: Action object, MenuItem object

Syntax

[[Let] checkedRet =] object.Checked

[Let] object.Checked = checkedSet

The Checked property syntax has these parts:

Part Description
object Required. An expression that returns a MenuItem object.
checkedRet Optional. A Boolean type variable.
checkedSet Required. An expression that returns a Boolean value.

Remarks

If True, displays a check mark beside the command name on the menu. If False, the check mark is not displayed.

Example

This example contains a document-level script.

Dim s as Shape, MyAction as Action


' Assume the shape with ID 1 exists on the active page.
' Assume the shape contains at least one action.
s = thisDoc.ActivePage.ShapeByID(1)
' Get a reference to the Action object Set MyAction = s.Action(1)
' Set check mark MyAction.Checked = True