WidowControl Property Example

This example formats the paragraphs in the active document so that the first or last line in a paragraph can appear by itself at the top or bottom of a page.

ActiveDocument.Paragraphs.WidowControl = False