Viewer.ShapeCount property (Visio Viewer)
Gets the count of shapes in the drawing that is open in Microsoft Visio Viewer. Read-only.
Syntax
expression.ShapeCount
expression An expression that returns a Viewer object.
Return value
Long
Remarks
If there are no shapes in the drawing, the ShapeCount property returns 0.
Example
The following code gets the count of shapes in the drawing that is open in Visio Viewer. Subshapes and group shapes are both included in the count.
Debug.Print vsoViewer.ShapeCount
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.