Viewer.PageIndexToID property (Visio Viewer)
Gets the ID of the page at the specified index in the collection of pages in the drawing that is open in Microsoft Visio Viewer. Read-only.
Syntax
expression.PageIndexToID (PageIndex)
expression An expression that returns a Viewer object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
PageIndex | Required | Long | The index of the page whose ID you want to get. |
Return value
Long
Remarks
The collection of pages is one-based, so the index of the first page in the collection is 1.
Example
The following code shows how to get the ID of the page at index position 1 in the collection of pages in the drawing that is open in Visio Viewer.
Debug.Print vsoViewer.PageIndexToID(1)
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.