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

Pages.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.

Syntax

expression. Item( Item)

_expression_A variable that represents a Pages object.

Parameters

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.

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