NoSpaceBetweenParagraphsOfSameStyle Property

Microsoft Word Visual Basic

expression.NoSpaceBetweenParagraphsOfSameStyle

expression    Required. An expression that returns one of the objects in the Applies to list.

Example

This example removes spacing between paragraphs formatted with the "List 1" style. This example assumes that you have a sequence of paragraphs in the active document formatted with a style named "List 1."

Sub NoSpace()
    ActiveDocument.Styles("List 1") _
        .NoSpaceBetweenParagraphsOfSameStyle = True
End Sub