Jon Peltier said:
The usual method for displaying a string that identifies the version of a
program, in this case Excel, is to start the app, get the version and then
use a Select Case or If to determine which string to display.
A better, or more general, way would be to use the API to first see
whether
the app is installed.
If installed, determine the version specific progid, then get the "title":
of the prog from the registry BEFORE opening the program.
This eliminates the need to hard code titles within programs, and, as long
as MSFT does't change things, eliminates the need to change the program,
for
this purpose, by hard coding titles of future versions.
Being masochistic, I looked thru the registry and found the key I
referenced.
If the same key is available in Win 2000, XP and Vista, the hard coding
of
titles is not necessary,
Of course, I have tested this only for Excel 2003, not yet for Excel 97,
2000, or 2002.
I expect to do this next week.
Howard Kaikow said:
Does the following key exist in the Windows XP and Windows Vista
registries
for an installed Excel?
The example is for Excel 2003 (version 11).
'[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared
Tools\MSInfo\Categories\Applications11\Excel11]