KeepWithNext Property

Microsoft Word Visual Basic

KeepWithNext Property

       

True if the specified paragraph remains on the same page as the paragraph that follows it when Microsoft Word repaginates the document. Can be True, False, or wdUndefined. Read/write Long.

Example

This example keeps the third paragraph through sixth paragraph in the active document on the same page.

For i = 3 To 5
    ActiveDocument.Paragraphs(i).KeepWithNext = True
Next i