I am trying to look thru different worksheets for certain values. A list of those worksheets is contained in Range (B1:B15). When I do the lookup outside of the loop structure it works fine I displayed i and the program accurately identified it any suggestions?
For Each i In Range("B1:B15")
Range("D5") = i
c = Application.WorksheetFunction.Lookup(5, ActiveWorkbook.Worksheets(i).Range("AG3:AG100"), ActiveWorkbook.Worksheets(i).Range("AE3:AE100"))
Range("D3") = c
Next i
Thank You!!
For Each i In Range("B1:B15")
Range("D5") = i
c = Application.WorksheetFunction.Lookup(5, ActiveWorkbook.Worksheets(i).Range("AG3:AG100"), ActiveWorkbook.Worksheets(i).Range("AE3:AE100"))
Range("D3") = c
Next i
Thank You!!