Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Choose Excel version
Message
From
29/03/2014 17:53:45
 
 
To
29/03/2014 17:41:13
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01597666
Message ID:
01597667
Views:
52
>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")  && 2003
loExcel = CreateObject("Excel.Application.12")  && 2007
* from http://en.wikipedia.org/wiki/History_of_Microsoft_Office
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform