Auto Sum cell above a relevant reference cell
How can I sum all cells above a cell. For instance I have spreadsheets with
varying numbers of rows, and I want to add a sum total at the bottom of each
of those columns. Since the number of rows is unknown, I am unsure of what to
put after the word "sum"....... Here is the code I have:
ActiveCell.SpecialCells(xlLastCell).Select
ActiveCell.Offset(1, -2).Select
ActiveCell.FormulaR1C1 = "=SUM(?????????)"
|