Hello: I have a formula in a CurrentSheet that is looping through data looking at the headers of a data table (data_table) in the same workbook for index and match. That code works fine and is below. However, I need to make it refer to another data table in another workbook for the data. That table is named the same and has the same header structure. I've tried a ton of different ideas to make the reference work, but so far no luck.
Any help would be appreciated!
Any help would be appreciated!
Code:
For i = 1 To 7
With Cells(i, 7)
.Formula = "=INDEX(data_table[Account Type],MATCH(CurrentSheet!" & Cells(i, 6).Address(0, 0) & ",data_table[Account],0))"
.Value = .Value
End With
Next i