Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Choose Excel version
Message
De
29/03/2014 17:53:45
 
 
À
29/03/2014 17:41:13
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01597666
Message ID:
01597667
Vues:
53
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform