It doesn't work because inSelection.FormulaR1C1 = "=VLOOKUP(Cells(KeyStartRow, TitleCol),'Ref.Tables'!C[4]:C[5],2,FALSE)"You don't want KeyStartRow. You want the current row.