Paragraph.KeepWithNext property (Word)

True if the specified paragraph remains on the same page as the paragraph that follows it when Microsoft Word repaginates the document. Read/write Long.

Syntax

expression. KeepWithNext

expression A variable that represents a 'Paragraph' object.

Remarks

This property can be True, False, or wdUndefined.

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

See also

Paragraph Object

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.