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.