TextStyle.Font property (Publisher)
Sets or returns a Font object that represents character formatting attributes applied to the specified object. Read/write.
Syntax
expression.Font
expression A variable that represents a TextStyle object.
Example
This example selects text and formats the font as bold.
Sub test2()
With Selection.TextRange
.Start = 50
.End = 150
.Font.Bold = msoTrue
End With
End Sub
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.