I have an old vb6 file conversion program (to convert text in fixed width fields to and from excel) which is generally maintained on a windows xp virtual machine with office 2000 installed. The program calls Excel 2000 using early binding with a reference to the Excel 9.0 object library and all has worked okay for years even when the compiled version is used on other machines with excel 2003, 2007 etc installed instead of excel 2000. However, I've run into a problem recently when running with Excel 2010 (excel 14.0) and I don't know if it's syntax or perhaps some security setting in excel which is causing the remote procedure call to fail with a 462 server unavailable error.
The offending line in the original code (having set all the references) says
Set eBQ = appExcel.Workbooks.Open(sFILE)
and I have also tried altering the syntax as below but get the same result
Set eBQ = appExcel.Workbooks.Open(FileName:=sFILE)
Incidentally, if I temporarily alter the line in the IDE to say "Set eBQ = appExcel.Workbooks.Add" the command is accepted so I can create a new workbook but I can't edit an existing one or so it seems.
I have also tried late binding by declaring all the references as object but got precisely the same result
I have also installed vb6 alongside Excel 2007 (excel 12.0) on a different windows 10 machine and the program works okay which narrows it all down to Excel 2010. I have tried the interpreted version on the VB6 IDE and the compiled version with the same error 462 result.
Can anyone help me resolve this issue?
Thanks in Advance
The offending line in the original code (having set all the references) says
Set eBQ = appExcel.Workbooks.Open(sFILE)
and I have also tried altering the syntax as below but get the same result
Set eBQ = appExcel.Workbooks.Open(FileName:=sFILE)
Incidentally, if I temporarily alter the line in the IDE to say "Set eBQ = appExcel.Workbooks.Add" the command is accepted so I can create a new workbook but I can't edit an existing one or so it seems.
I have also tried late binding by declaring all the references as object but got precisely the same result
I have also installed vb6 alongside Excel 2007 (excel 12.0) on a different windows 10 machine and the program works okay which narrows it all down to Excel 2010. I have tried the interpreted version on the VB6 IDE and the compiled version with the same error 462 result.
Can anyone help me resolve this issue?
Thanks in Advance