Table of contents
TOC
Collapse the table of content
Expand the table of content

TextStyle.NextParagraphStyle Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

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
© 2018 Microsoft