ReaderSpread.Pages property (Publisher)
Returns a Page object representing one of the pages that compose the specified reader spread.
Syntax
expression.Pages (Index)
expression A variable that represents a ReaderSpread object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Index | Required | Long | The page from the reader spread to return. Can be either 1 or 2. |
Remarks
A reader spread consists of only one or two pages, which is why the valid values for the Index argument are 1 or 2.
Example
The following example checks the reader spread of the fifth page in the active publication to see if it contains more than one page. If it does, the example reports the page number of the second page in the spread.
Dim pageTemp As Page
With ActiveDocument.Pages(5).ReaderSpread
If .PageCount > 1 Then
Set pageTemp = .Pages(Index:=2)
MsgBox "The page number of the second page " _
& "in the spread is " & pageTemp.PageNumber
Else
MsgBox "The spread has only one page."
End If
End With
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for