>Hi. To open Excel, I give a command like:
>
>
>loExcel = CreateObject("Excel.Application")
>
>
>On one machine, there are two versions of Excel installed; I think it's Excel 2003 and 2007. Is there a way to control what version of Excel will be opened?
>
>This is actually solved already, in the sense that the corresponding user decided to remove the old version of Excel. But I was still curious whether there is any way to control this.
I believe you can specify a version like this:
loExcel = CreateObject("Excel.Application.11")
loExcel = CreateObject("Excel.Application.12")
I've never tried it on a machine with multiple versions of Office (or components) installed. I don't know how reliable it is, considering which version may have been registered last and/or updates installed by Microsoft Update.
UPDATE: looks like this won't work:
http://support.microsoft.com/kb/292491
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up