TextStyle.NextParagraphStyle property (Publisher)

Returns or sets a String that represents the paragraph style that follows the specified text style when a user presses Enter. Read/write.

Syntax

expression.NextParagraphStyle

expression A variable that represents a TextStyle object.

Return value

String

Example

This example creates a new text style and specifies that the text style following the new text style is the Normal style.

Sub CreateNewTextStyle() 
 Dim styNew As TextStyle 
 Dim fntStyle As Font 
 
 Set styNew = ActiveDocument.TextStyles.Add(StyleName:="Heading 1") 
 Set fntStyle = styNew.Font 
 
 With fntStyle 
 .Name = "Tahoma" 
 .Bold = msoTrue 
 .Size = 15 
 End With 
 
 With styNew 
 .Font = fntStyle 
 .NextParagraphStyle = "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.