Share via


Document.Repaginate Method

Word Developer Reference

Repaginates the entire document.

Syntax

expression.Repaginate

expression   Required. A variable that represents a Document object.

Example

This example repaginates the active document if it has changed since the last time it was saved.

Visual Basic for Applications
  If ActiveDocument.Saved = False Then ActiveDocument.Repaginate

This example repaginates all open documents.

Visual Basic for Applications
  For Each doc In Documents
    doc.Repaginate
Next doc

See Also