Page Object

Microsoft Word Visual Basic

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)
  

Use the PageIndex property to access the page number of a specified Page object.