Which version is installed?

P

Peter Brause

Hi,
how do I find out which version of word is installed?
In the registry on my PC I see at
HKEY_CURRENT_USER/Software/Microsoft/Office thre versions: 10.0, 9.0, 8.0.
They have different subfolders, and the version with the highest number of
subfolders is the installed one. But I'm in doubt if this is a secureway of
determining the installed version.
TIA
Peter
 
J

Jezebel

Depends where you're starting from. If you're searching the registry, look
for

MyComputer\HKEY_CLASSES_ROOT\Word.Application\CurVer

which will have a value like Word.Application.10, where 10 is the version



From VB, you can do it like this --

Dim wrdApp as object
Set wrdApp = CreateObject("Word.Application")

Version = wrdApp.Version
 
Top