Font.Underline property (PowerPoint)
Determines whether the specified text (for the Font object) or the font style (for the FontInfo object) is underlined. Read/write.
expression A variable that represents an Font object.
The value of the Underline property can be one of these MsoTriState constants.
|msoFalse||The specified text (or font style) isn't underlined.|
|msoTriStateMixed||Some characters are underlined (for the specified text) and some aren't.|
|msoTrue||The specified text (or font style) is underlined.|
This example sets the formatting for the text in shape two on slide one in the active presentation.
With Application.ActivePresentation.Slides(1).Shapes(2) With .TextFrame.TextRange.Font .Size = 32 .Name = "Palatino" .Underline = msoTrue End With End With
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.