Applies To
Font Object.
Description
Returns or sets the type of underline applied to the font, as shown in the following table. Read-write.
Value |
Meaning |
xlNone |
No underline. |
xlSingle |
Single underline. |
xlDouble |
Double underline. |
xlSingleAccounting |
Single accounting underline. |
xlDoubleAccounting |
Double accounting underline. |
Example
This example sets the font in the active cell on Sheet1 to single underline.
Worksheets("Sheet1").Activate ActiveCell.Font.Underline = xlSingle