Hi, I am trying to get a macro to insert a formula in a cell that sum the all the cells in the column above the active cell. The problem is that the number of rows could change, and I don't know how to fix the r1c1 for the first cell...
This is what I've got so far:
ActiveCell.FormulaR1C1 = "=sum(R[????]:R[-2]C[0])"
![]()
Bookmarks