Viewer.PageCount property (Visio Viewer)
Gets the number of pages in the current document that is open in Microsoft Visio Viewer. Read-only.
Syntax
expression.PageCount
expression An expression that returns a Viewer object.
Return value
Long
Example
The following code displays the number of pages in the current document in the Immediate window.
Debug.Print vsoViewer.PageCount
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.