I have a macro that points and clicks it's way through a program, running a report and saving it as an xls file. Using XLOpen I was always able to open the xls and extract some values to variables. Suddenly, and without warning, my script now fails on the XLOpen line and throws an 'Invalid Varient Operation' error and I'm not sure why or what to do about it. Here's the section that is giving me problems, any help is greatly appreciated. -thank you.
Code: Select all
Goto>PrepData
Label>PrepData
XLOpen>C:\Users\Mentor\Documents\TunnelReport.xls,0,xlTR
Wait>.75
XLGetCell>xlTR,Sheet1,11,8,t2Transfers
XLGetCell>xlTR,Sheet1,12,8,t1Transfers
XLGetCell>xlTR,Sheet1,11,16,t2RunTime
XLGetCell>xlTR,Sheet1,12,16,t1RunTime
XLGetCell>xlTR,Sheet1,14,7,totalTransfers
XLGetCell>xlTR,Sheet1,14,16,totalRunTime
Wait>.5
XLQuit>xlTR
Wait>.5
Goto>t1Calculations