I’m assigning a formula to a column via a VBA subroutine.
The sub looks something like:
While curCell.Formula <> ""
curCell.Formula = "=MATCH(RC[-20],"E:E",0)"
Wend
After running the subroutine the formula is correctly copied but all the cells show “#NAME?”. If I select a cell and hit enter then the formula is correctly calculated and the result is shown.
Automatic calculations are turned on.
Its not a good idea to try to mix R1C1 and A1 notation in the same formula.
Try something like