To clarify on what I want to do with two open workbooks, I want to add a new row for a lookup sheet whenever the data currently doesn't exist in the current lookup sheet.
Perhaps I could provide a simple code for troubleshooting (the second and third XLGetCell will have that error):
Code: Select all
XLOpen>%file_Lookup%,0,xlFileLookup
XLGetCell>xlFileLookup,Data,1,1,Res
XLOpen>%file_EmpMaster%,0,xlEmpMaster
XLGetCell>xlFileLookup,Data,1,1,Res
XLQuit>xlEmpMaster
XLGetCell>xlFileLookup,Data,1,1,Res
XLQuit>xlFileLookup
Thank you for reading.