Viewer.MajorVersionNumber property (Visio Viewer)
Gets the major version number of Microsoft Visio Viewer. Read-only.
Syntax
expression.MajorVersionNumber
expression An expression that returns a Viewer object.
Return value
Long
Remarks
The major version number of Visio Viewer corresponds to the major version number of Microsoft Office.
For the Office 2010 version of Visio Viewer, the major version number is 14. For Visio Viewer 2007, the major version number is 12. For Visio Viewer 2003, the major version number is 11, and for Visio Viewer 2002, the major version number is 10.
Example
The following code displays the major version number in the Immediate window.
Debug.Print vsoViewer.MajorVersionNumber
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.