Insert formulas by means of a Macro
'Recognize the last row with data in Column A
lngLastRow = ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row
'example Formula in Row 13 to sum a1 to a11
Range("A" & lngLastRow).Formula = "=SUM(A1:B" & lngLastRow-1 & ")"
If this post helps click Yes
---------------
Jacob Skaria
"Mucah!t" wrote:
Hello all,
I'm looking for a code which recognizes the last data entered in a
sheet and adds 3 rows of formulas beneath it.
Thanks in advance
|