KeepWithNext Property

Applies To

Paragraph object, ParagraphFormat object, Paragraphs collection object.

Description

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

See Also

WidowControl property.

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