I have a small macro program that matches values between two worksheets (big data).
I'm using Application.Match method to find the match of a certain value in another worksheet.
The problem is, when I try to assign a row variable on the range, the result gets Row 1 instead of Row 7 where the exact match is.
Application.Match(data1, Worksheets("Data").Range("O" & lRowRange & ":O" & lLastRow), 0)`
lRowRange = 5
If Not IsError(Application.Match(data1, Worksheets("Data").Range("O" & lRowRange & ":O" & lLastRow), 0)) Then
lMatchFound = Application.WorksheetFunction.Match(data1, Worksheets("Data").Range("O" & lRowRange & ":O" & lLastRow), 0)
sDataFound = Sheets("Data").Cells(lMatchFound, 15)
End if
I'm not using LOOP statements to find the match because the worksheets contain large amount of data.
Hope you could help me out. Thanks in advance.