Font.Underline property (Excel)
Returns or sets the type of underline applied to the font. Read/write Variant.
expression A variable that represents a Font object.
Can be one of the XlUnderlineStyle constants.
This example sets the font in the active cell on Sheet1 to single underline.
Worksheets("Sheet1").Activate ActiveCell.Font.Underline = xlUnderlineStyleSingle
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.