I am trying to write this formula using VBA:
ActiveCell.Value = \"=f(R[-1]C[0],Sheet1!\" & ColumnLetter & i & \")\"
Where Colum
The Apostrophe means to Excel that it should interpret it as text.
Write it to ActiveCell.Formula. That way it is recognized as Formula.