Page Object

Pages
Page
Multiple objects

Represents a page in a document. Use the Page object and the related methods and properties for programmatically defining page layout in a document.

Using the Page Object

Use the Item method to access a specific page in a document. The following example accesses the first page in the active document.

Dim objPage As Page

Set objPage = ActiveDocument.ActiveWindow _
    .Panes(1).Pages.Item(1)

To access the page number, use the Information property of a Range or Selection object, or the PageIndex property of a Break object that belongs to the Breaks collection of the specified Page object.

The Top and Left properties of the Page object always return 0 (zero) indicating the upper left corner of the page. The Height and Width properties return the height and width in points (72 points = 1 inch) of the paper size specified in the Page Setup dialog or through the PageSetup object. For example, for an 8-1/2 by 11 inch page in portrait mode, the Height property returns 792 and the Width property returns 612. All four of these properties are read-only.

Properties | Application Property | Breaks Property | Creator Property | Height Property | Left Property | Parent Property | Rectangles Property | Top Property | Width Property

Parent Objects

Child Objects | Breaks Object | Rectangles Object