I am writing a VBA (Visual Basic for Applications) script for AutoCAD. It uses Autocad as a graphical engine and Excel for displaying the results....
The problem is, that some of the users are using Excel 2003, and the other are using Excel 2007.
To use Excel 2003 from the VBA, I have to reference C:\Program Files\Microsoft office\Office12\excel.exe
to the project. But to use Excel 2007, I have to reference ...\Office14\excel.exe
.
For people that does not know, what reference is: it must be done permanently, within the project properties, so I can't programatically decide, which of that two files does exist in computer and reference them in runtime.... or maybe I just don't know, how?
I can't even reference both of the files at once, because they have the same filename.