Application.CommandUnderlines Property (Excel)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

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

expression .CommandUnderlines

expression A variable that represents an Application object.

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

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

Application.CommandUnderlines = xlCommandUnderlinesOff
Show: