Word VBA: Getting Word Version Number

The following Word VBA macro shows a message box with the Word version number.

Macro Example

Sub GetWordVersionNumber()

  MsgBox Application.Version

End Sub

Description

Application

  Application...

The Application property returns the Application object.

Application.Version

  ActiveDocument.Version

The Application.Version property returns the Microsoft Word version number.

MsgBox function

The code: Application.Version is set to the parameter of a MsgBox function.

Sub GetWordVersionNumber()

  MsgBox Application.Version

End Sub

So, a message box shows the Word version number.

Properties

http://www.relief.jp/itnote/archives/018060.php

Apply To

  • Word 2016 for Windows
  • Word 2013
  • Word 2010
  • Word 2007