Export (0) Print
Expand All

PageSetup Object

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

Example

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.

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



Community Additions

ADD
Show:
© 2014 Microsoft