Moonbeam111
Board Regular
- Joined
- Sep 24, 2018
- Messages
- 73
- Office Version
- 365
- 2010
I am trying to use vlookup between sheets but I get an object required error on the third line (sres.select). Can anyone tell me how come so that I can fix this code?
VBA Code:
celllookup = Range("H193")
sres = Application.VLookup(celllookup, Sheets("Sheet2").Range("H2:J15"), 1, False)
sres.Select
If Selection.Offset(0, 1) <= Sheets("Sheet1").Range("H198") Then
Range("H194") = Selection.Offset(0, 2)
End If