Paragraph.KeepTogether property (Word)

True if all lines in the specified paragraph remain on the same page when Microsoft Word repaginates the document. Read/write Long.

Syntax

expression. KeepTogether

expression A variable that represents a 'Paragraph' object.

Remarks

This property can be True, False, or wdUndefined.

Example

This example formats the first paragraph in the active document so that all the lines in each paragraph are on the same page when Word repaginates the document.

ActiveDocument.Paragraphs(1).KeepTogether = True

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.