OK, I had Office 2003 and created a script that works with Excel 2003. Then I recently updated to 2007. Now the script fails. I am trying to run the below code without getting the below error message. Please help. Any ideas/solutions?
~Error~
Script: C:\test.xlsx
Line: 3
Char: 1
Error: The server threw an exception.
Code: 80010105
Source: (null)
~Error~
I suspect the object library refference version is the core of the problem, but I do not know and I need a solution. Any ideas?
V/r,
SPC Key
United States Army
Code:
Set myExcel = CreateObject("Excel.Application")
myExcel.Visible = TRUE
Set myWorkbook = myExcel.Workbooks.Open("C:\test.xlsx")
~Error~
Script: C:\test.xlsx
Line: 3
Char: 1
Error: The server threw an exception.
Code: 80010105
Source: (null)
~Error~
I suspect the object library refference version is the core of the problem, but I do not know and I need a solution. Any ideas?
V/r,
SPC Key
United States Army