Enabled Property

A Long value. A flag that specifies whether a menu or a menu item is enabled or disabled.

Applies to: Menu object, MenuItem object

Syntax

[[Let] enabledRet =] object.Enabled

[Let] object.Enabled = enabledSet

The Enabled property syntax has these parts:

Part Description
object Required. An expression that returns an instance of an object from the Applies to list.
enabledRet Optional. A Boolean type variable.
enabledSet Required. An expression that returns a Boolean value.

Remarks

If Enabled is TRUE, the menu or the menu item is operating (enabled). Otherwise either the menu item is disabled, or all items of the menu are disabled (if applied to the menu).