koi
Member
Hi All,
here I am again with different question, hopefully I will get the result as always from this lovely forum, Thanks
below code will do fine for sum last row from B, but how to copy it to C and D on the last row as well?
here I am again with different question, hopefully I will get the result as always from this lovely forum, Thanks
below code will do fine for sum last row from B, but how to copy it to C and D on the last row as well?
Code:
Sub SumTotal()
Dim Lr As Long
Sheets("Test").Select
Lr = Range("A" & Rows.Count).End(xlUp).Row
Range("B" & Lr + 1).Formula = "=SUM(B2:B" & Lr & ")"
End Sub[\Code]