I have a looping INDEX-MATCH VBA that I am trying to debug, as it is constantly throwing a Sub or Function not defined error. With what I have already found on this site, I was able to check my references, but I still seem to be missing something ("Solver" is checked). At this point, an extra pair of eyes would be most helpful!
Private Sub Looping_Index_Match()
Application.ScreenUpdating = False
Dim rng As Range
Dim cell as range
Dim IndexRange as range
Dim MatchRange as range
Set rng = ActiveSheet.Range("D42:D241")
With Workbook("WorkCenter.xlsm").Sheets(ComboBox1.Value)
Set IndexRange=Range(.Range("M2"),.Range(“M2”).end(xlup))
Set MatchRange= Range(.Range("L2"),.Range(“L2”).end(xlup))
End With
For Each cell In rng
Cell.Offset(0,1)=Application.WorksheetFunction.Index(IndexRange,Application.WorksheetFuntion.Match(cell,Application.WorksheetFunction.Match(cell,MatchRange,0))
Next
Application.ScreenUpdating=True
End Sub
Notes: There are two workbooks involved. Data from the "Work Center" workbook column M is being retrieved and entered into the "Summary" workbook, as matched by serial numbers found in column L.