MajorVersion Property

Microsoft Office Web Components Visual Basic

Returns the major version of the Microsoft Office Web Components object library. Read-only Long.

expression.MajorVersion

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

This example displays the major version of Spreadsheet1.

Msgbox Spreadsheet1.MajorVersion