BIGTONE559
Active Member
- Joined
- Apr 20, 2011
- Messages
- 336
I originally posted about using vlookup to check in vba. I didn't receive any responses so i figured i was going about it the wrong way. Please share what you feel is the best way to resolve the following scenario:
You have 2 sheets of data.
on sheet 1 row 1:30 you have values in A1:D1
on sheet 2 row 1:30 you have values in A1:D1
you want to look up value D1 (Sheet1) with Value D1 (sheet2) and return B1 (Sheet2) value.
Then we would like to see if that result = to A1 (Sheet1)
I was using something like this:
But i kept receiving range of object global fail.
What would anyone else suggest?
You have 2 sheets of data.
on sheet 1 row 1:30 you have values in A1:D1
on sheet 2 row 1:30 you have values in A1:D1
you want to look up value D1 (Sheet1) with Value D1 (sheet2) and return B1 (Sheet2) value.
Then we would like to see if that result = to A1 (Sheet1)
I was using something like this:
Code:
If Application.WorksheetFunction.VLookup(Range(Cells(x, 4)), Range("checklist"), 2, False) = Cells(x, 2) Then
But i kept receiving range of object global fail.
What would anyone else suggest?