Hi,
i have one code which can find last row and also apply sum total formula at end
but now i have certain filter cretaria and then i need to apply sum at end.
Can you please look and make some adjustment so that it can sum at the end with filter applied. thanks
i have one code which can find last row and also apply sum total formula at end
but now i have certain filter cretaria and then i need to apply sum at end.
Can you please look and make some adjustment so that it can sum at the end with filter applied. thanks
Code:
Sub addtwo()
Dim LastRow As Long
Sheets("FY-2017").Select
Range("S2").Select
LastRow = Cells(Cells.Rows.Count, "S").End(xlUp).Row + 1
Range("S" & LastRow).Formula = "=sum(S2:S" & LastRow - 1 & ")"
End Sub