TextStyle.BaseStyle property (Publisher)

Returns or sets a String that represents the style upon which the formatting of another style is based. Read/write.

Syntax

expression.BaseStyle

expression A variable that represents a TextStyle object.

Return value

String

Example

This example sets the base formatting of the style named Body Text to the formatting of the Normal style.

Sub SetBaseStyle() 
 With ActiveDocument.TextStyles 
 .Add "Body Text" 
 .Item("Body Text").BaseStyle = "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.