MasterPages.Item Property (Publisher)

Returns the specified Page object from a Pages or MasterPages collection. Read-only.

Syntax

expression. Item(Item)

expression A variable that represents a MasterPages object.

Parameters

Name Required/Optional Data type Description
Item Required Long The number of the page to return. For MasterPages collections, Item can either be 1 or 2 for the left and right master pages, respectively. For Pages collections, Item corresponds to a Page object's PageIndex property.

Example

This example displays the page number, page index, and page ID of the first page in the active publication.

With ActiveDocument.Pages.Item(1) 
 Debug.Print "Page number = " & .PageNumber 
 Debug.Print "Page index = " & .PageIndex 
 Debug.Print "Page ID = " & .PageID 
End With