Share via


Pages Collection

Pane
Pages
Page
Multiple objects

A collection of pages in a document. Use the Pages collection and the related objects and properties for programmatically defining page layout in a document.

Using the Pages Collection

Use the Pages property to return a Pages collection. The following example accesses all pages in the active document.

Dim objPages As Pages

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

Use the Item method to access an individual Page object that represents an individual 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)

Properties | Application Property | Count Property | Creator Property | Parent Property

Methods | Item Method

Parent Objects | Pane

Child Objects | Breaks | Rectangles