G
Guest
Using 2003 & 97
Need VBA syntax to SUM() at two cells below last data item.
In the code below, I selected the cell using relative then absolute
referencing
ActiveCell.Offset(-3, 1).Range("A1").Select
ActiveCell.FormulaR1C1 = "=SUM(R[-32]C:R[-1]C)"
Seeing the above, I am not sure of the syntax for VBA to find the cell two
rows
below the last data item; summing from Row 2 to the last data item and place
an
Excel formula in that cell.
Thoughts?
TIA
Dennis
Need VBA syntax to SUM() at two cells below last data item.
In the code below, I selected the cell using relative then absolute
referencing
ActiveCell.Offset(-3, 1).Range("A1").Select
ActiveCell.FormulaR1C1 = "=SUM(R[-32]C:R[-1]C)"
Seeing the above, I am not sure of the syntax for VBA to find the cell two
rows
below the last data item; summing from Row 2 to the last data item and place
an
Excel formula in that cell.
Thoughts?
TIA
Dennis