Syntax

expression.Underline

expression A variable that represents a Font object.

Remarks

XlUnderlineStyle can be one of these XlUnderlineStyle constants.
xlUnderlineStyleNone
xlUnderlineStyleSingle
xlUnderlineStyleDouble
xlUnderlineStyleSingleAccounting
xlUnderlineStyleDoubleAccounting

Example

This example sets the font in the active cell on Sheet1 to single underline.

Visual Basic for Applications
Worksheets("Sheet1").Activate ActiveCell.Font.Underline = xlUnderlineStyleSingle
underline Underline a single character in a word? underline property underline text?

See also: