PageSetup Object

PageSetup Object
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Document
Aa662037.parchild(en-us,office.10).gifPageSetup

Contains information about the page setup for the pages in a publication.

Using the PageSetup object

Use the PageSetup property to return the PageSetup object. The following example sets all pages in the active publication to be 8.5 inches wide and 11 inches high.

  Sub SetPageSetupOptions()
    With ActiveDocument.PageSetup
        .PageHeight = 11 * 72
        .PageWidth = 8.5 * 72
    End With
End Sub