Applies To
Application Object.
Description
Returns or sets the state of the command underlines, as shown in the following table.
Value |
Meaning |
xlOn |
Command underlines are on. |
xlOff |
Command underlines are off. |
xlAutomatic |
Command underlines appear when you activate the menus. |
Remarks
In Microsoft Excel for Windows, reading this property always returns xlOn, and setting this property to anything but xlOn is an error.
Example
This example turns off command underlines in Microsoft Excel for the Macintosh.
Application.CommandUnderlines = xlOff