K
khundeen
I am writing Excel automation using Visual basic 6.
The application is supposed to read the excel file created by the
Office 2003 version. I also have Office 2003 on my machine so I set my
reference to "Microsoft Excel 11.0 Object Library"
Now when I try to run the program on the computer that doesn't have
Office 2003 but has Office 2000, it crashed.
Can you let me know how to handle this problem.
I do have the error handling section to display the error but it seems
that the program try to execute but got Error "An exception "Unhandled
Win 32 Exception" has occured in Program.exe"
I would like to check if the excel on the machine is not version 2003
and just abort the program without crashing.
Can anyone help with the sample of source code to determine the version
of Excel in the computer?
Thanks,
Deen
The application is supposed to read the excel file created by the
Office 2003 version. I also have Office 2003 on my machine so I set my
reference to "Microsoft Excel 11.0 Object Library"
Now when I try to run the program on the computer that doesn't have
Office 2003 but has Office 2000, it crashed.
Can you let me know how to handle this problem.
I do have the error handling section to display the error but it seems
that the program try to execute but got Error "An exception "Unhandled
Win 32 Exception" has occured in Program.exe"
I would like to check if the excel on the machine is not version 2003
and just abort the program without crashing.
Can anyone help with the sample of source code to determine the version
of Excel in the computer?
Thanks,
Deen