Find cell, copy adjacent cell ComObj
Posted: 19 May 2017, 15:32
I want to convert old invoice numbers (in column A) to new ones with a MASSIVE range of rows. Then after I find the cell with the old invoice number the converted number is adjacent to it (column B).
Code: Select all
Claim := clipboard ; Saving my clipboard as a variable
XL := ComObjGet("C:\Users\james\Desktop\Book1.xlsx")
XL.Sheets("AC to IC Claim Numbers").Select
XL.Range["A:A"].Find(Claim).Row := Claim ; I'm trying to activate "sheet2" and find my variable
; This line is getting an error ^
Conversion := cell.offset(0, 1).text
MsgBox %Conversion%