ParagraphFormat.TextStyle property (Publisher)
Returns or sets a Variant that represents the text style applied to a paragraph. Read/write.
Syntax
expression.TextStyle
expression A variable that represents a ParagraphFormat object.
Return value
Variant
Example
This example changes the text style of the selection if the selection isn't formatted with the Normal text style. This example assumes that text is selected in the active publication.
Sub SetTextStyle()
With Selection.TextRange.ParagraphFormat
If .TextStyle <> "Normal" Then _
.TextStyle = "Normal"
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.