I'm trying to put a formula into a cell using VBA but I keep getting an application defined error. Could someone please offer me a little advice? Here is my code.
Sub Addem_Up()
Dim lrow As Double
lrow = Rows.Cells(1, 1).End(xlDown).Row
Cells(lrow + 1, 1).Activate
ActiveCell.FormulaR1C1 = "=SUM(R[-lrow]C:R[-1]C)"
End Sub
For just $19.95 you too can have a beautiful smile.
Sub Addem_Up()
Dim lrow As Double
lrow = Rows.Cells(1, 1).End(xlDown).Row
Cells(lrow + 1, 1).Activate
ActiveCell.FormulaR1C1 = "=SUM(R[-lrow]C:R[-1]C)"
End Sub
For just $19.95 you too can have a beautiful smile.