Version Property Example

This example displays a message box that contains the Microsoft Excel version number and the name of the operating system.

MsgBox "Welcome to Microsoft Excel version " & _ 
    Application.Version & " running on " & _
    Application.OperatingSystem & "!"