>oe=createobject("Excel.Application")
>? oe.version
>
>>Zoran,
>>
>>With Word Basic you can use oWord.AppInfo(2). It will return a numeric version. Word '95 is version 7, Word '97 is version 8. I'm not sure if it will work with Excel, but you could try it.
>>
>>>Does anybody know how to determine which version of Microsoft office is currently on the machine,
>>>
>>>I have the following command
>>>
>>>OWord=CREATEOBJECT('Word.Basic') or oEx=GETOBJECT('Excel.chart')
>>>
>>>And after this commands I must know which version is running, because the methods and properties for the ver.95 and ver.97 are not the same.
Perhaps not as elegant, but what about querying the HKEY_LOCAL_MACHINE\Software\Microsoft\Office key? There should be a subkey for the version number (ie if Office 97 is installed, there is a subkey of '8.0') and under that, the actual installed components and some of their settings are available. This avoids launching the app if it isn't there at a minimum code cost...