I am currently using the following code to populate cells with a formula
I am now going to have a variable number of columns that this formula has to go in and also the RC[-1] col is going be always col A.
How do I change RC[-1] to refer to col A??
Code:
Dest.Cells(sRow, 10).Select
ActiveCell.FormulaR1C1 = "=if(RC[-2]<>""-"",(RC[-2]-RC[-1]),"""")"
How do I change RC[-1] to refer to col A??