Grayed Property (AMenu)

Returns or sets whether the menu text is displayed as grayed.

Syntax

Object.Grayed [ = bGrayed ]

The Grayed property syntax has the following parts:

 

Name

Type

Description

Object

AMenu

AMenu object

bGrayed

Bool

A boolean expression that specifies whether the menu text is displayed as grayed.

Where

bGrayed can be one of the following:

 

Value

Description

True

The menu text is grayed on the menu.

False *

The menu text is not grayed on the menu.

Comments

When Grayed is set to True, the Inactive property is not available to the programmer or user.

Example

The following statement changes the menu text on the AMenu to be Grayed:

mnu1.Menus(2).Grayed=True

Applies to

AMenu

See Also

Inactive