ReaderSpread.PageCount property (Publisher)
Returns a Long indicating the number of pages in the specified reader spread. Read-only.
Syntax
expression.PageCount
expression A variable that represents a ReaderSpread object.
Return value
Long
Remarks
A reader spread can contain no more than two pages.
Example
The following example checks the reader spread of the third page in the active publication to see if it contains more than one page, and then displays the total number of pages in the spread.
Sub NumberOfPagesInSpread()
If ActiveDocument.Pages(3).ReaderSpread.PageCount > 1 Then
MsgBox "The spread has two pages."
Else
MsgBox "The spread has only one page."
End If
End Sub
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