Returns or sets whether the menu text is displayed as grayed.
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. |
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. |
When Grayed is set to True, the Inactive property is not available to the programmer or user.
The following statement changes the menu text on the AMenu to be Grayed:
mnu1.Menus(2).Grayed=True