LucieLastic
Programmer
hi
I've written some very simple Excel automation stuff which runs fine on most machines but on 2 machines I get the message
"Error -2147352565 has occurred"
which isn't very intuitive. The machines are running the exact same version of Excel. The error occurs on the ConnectTo call, the Connect call is OK.
The code, ExcelApp(TExcelApplication comp) and ExcelSheet (TExcelWorksheet comp) :
ExcelApp.connect;
ExcelSheet.ConnectTo(ExcelApp.Worksheets.Item['control'] as _Worksheet);
Anyone got any ideas why I'm getting this error?
Thanks in advance
lou
I've written some very simple Excel automation stuff which runs fine on most machines but on 2 machines I get the message
"Error -2147352565 has occurred"
which isn't very intuitive. The machines are running the exact same version of Excel. The error occurs on the ConnectTo call, the Connect call is OK.
The code, ExcelApp(TExcelApplication comp) and ExcelSheet (TExcelWorksheet comp) :
ExcelApp.connect;
ExcelSheet.ConnectTo(ExcelApp.Worksheets.Item['control'] as _Worksheet);
Anyone got any ideas why I'm getting this error?
Thanks in advance
lou