J
John mac
I am trying to write macro that will loop through a worksheet active rows and
insert a "vlookup" function into col A that will look up based on value in
col b, somethng like:
For Row = last_row To 2 Step -1
asset_code = "B" & Row
Cells(Row, 1).Formula = "=VLOOKUP(""b""& row,Constants!A19:B55,2)"
Next Row
Warning.. I am a novice at macros and VB / VBA
insert a "vlookup" function into col A that will look up based on value in
col b, somethng like:
For Row = last_row To 2 Step -1
asset_code = "B" & Row
Cells(Row, 1).Formula = "=VLOOKUP(""b""& row,Constants!A19:B55,2)"
Next Row
Warning.. I am a novice at macros and VB / VBA