'this code only works in the first row and gives error code 1004 application or object define error when it goes around for the 2nd time of the loop.
[Sub indexmatch()
Dim x As Long
For x = 3 To 14
Cells(x, 8) = Application.WorksheetFunction.Index(Range("b2:f2"), Application.WorksheetFunction.Match(Cells(x, 7), Range(Cells(x, 2), Cells(x, 6))))
Next x
End Sub]
I'm very new to VBA trying to learn it. please explain in detail. Thanks
Bookmarks