CommandUnderlines Property

Applies To

Application object.

Description

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

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