ParaKeepWithNext, ParaKeepWithNext()

Syntax

ParaKeepWithNext [On]

ParaKeepWithNext()

Remarks

The ParaKeepWithNext statement adds or removes the Keep With Next paragraph format for the selected paragraphs. A paragraph formatted with Keep With Next remains on the same page as the paragraph it follows when Word repaginates the document.

Argument

Explanation

On

Specifies whether to add or remove the Keep With Next format:

1 Adds the Keep With Next format.

0 (zero) Removes the Keep With Next format.

Omitted Toggles the Keep With Next format.


The ParaKeepWithNext() function returns the following values.

Value

Explanation

0 (zero)

If none of the selected paragraphs are formatted with Keep With Next

–1

If some of the selected paragraphs are formatted with Keep With Next

1

If all the selected paragraphs are formatted with Keep With Next


See Also

FormatParagraph, ParaKeepLinesTogether, ParaPageBreakBefore