Syntax

expression.CommandUnderlines

expression A variable that represents an Application object.

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.

Visual Basic for Applications
Application.CommandUnderlines = xlCommandUnderlinesOff
command underlines Command Underlines Property CommandUnderlines CommandUnderlines Property Return setting for command underlines? Set command underlines to automatic? Turn off command underlines?

See also: