CommandUnderlines Property

Microsoft Excel Visual Basic

Returns or sets the state of the command underlines in Microsoft Excel for the Macintosh. Can be one of the following XlCommandUnderlines constants. Read/write Long.

XlCommandUnderlines can be one of these XlCommandUnderlines constants.
xlCommandUnderlinesOn
xlCommandUnderlinesOff

xlCommandUnderlinesAutomatic

expression.C ommandUnderlines

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

In Microsoft Excel for Windows, reading this property always returns xlCommandUnderlinesOn, and setting this property to anything other than xlCommandUnderlinesOn is an error.

Example

This example turns off command underlines in Microsoft Excel for the Macintosh.

Application.CommandUnderlines = xlCommandUnderlinesOff