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