Hi
I have written some code that user the Excel 11 object library and it
works fine on machines running Microsoft office 2003 but wont run on a
machines running office 2000.
I have then re-written the code using the Excel 9 object library that
will run on a machine using office 2000 but won’t run on machines
using 2003
At the moment I have it working using a try catch statement that will
try the first block of code, if that fails because office 2003 is not
installed it will then try the next block of code.
Some how this doesn’t seem good practice.
Is there a simple way to determine if the object libraries are
available on the client machine and run the correct code accordingly
so that I can remove the try catch statements?
Thanks
Jay Dee
|