Code: Select all
XLGet>E:\test.xlsx,xlBook
XLGetCell>xlBook,MSsheet,2,1,FirstName
"Access violation at address 004DCA32 in module 'msched.exe'. Read of address 00000000."
How can I get XLGetCell to work? Thanks!
Moderators: Dorian (MJT support), JRL
Code: Select all
XLGet>E:\test.xlsx,xlBook
XLGetCell>xlBook,MSsheet,2,1,FirstName
Code: Select all
XLOpen>E:\test.xlsx,1,xlBook
//XLGet>E:\test.xlsx,xlBook
XLGetCell>xlBook,MSsheet,2,1,FirstName
Code: Select all
XLOpen>C:\Users\Christer\Desktop\CHTestGET.xlsx,1,xlBook0
XLGet>C:\Users\Christer\Desktop\CHTestGET.xlsx,xlBook
XLGetCell>xlBook,Sheet1,1,1,strCell
MDL>strCell
Code: Select all
//Working code
let>filename=D:\mjt\files\excel\compare.xlsx
XLGet>filename,xlBook
XLAddSheet>xlBook,Customers
XLSetCell>xlBook,Customers,1,1,CustID,xlRes
Code: Select all
IfWindowOpen>test.xlsx - Excel
Let>FileName=E:\test.xlsx
Wait>5
XLGet>FileName,xlBookk
XLGetCell>xlBookk,MSsheet,2,1,FirstNameP
EndIf
Are you by any chance using an old version of Macro Scheduler, and have the filepath wrong?