Table of contents
Collapse the table of content
Expand the table of content

MasterPages.Item Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

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


expression. Item( Item)

_expression_A variable that represents a MasterPages object.


NameRequired/OptionalData TypeDescription
ItemRequiredLongThe 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.


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
© 2018 Microsoft