Hello All,
Is is possible to create a sum function on the active cell that checks the number of rows as its base?
I have tried the following but it does not work...anybody knows if it is possible to use this method?
Code
Sub SpecialSum()
Dim rct As Long
rct = Application.WorksheetFunction.CountA(Range("B:B"))
ActiveCell.FormulaR1C1 = "=SUM(R &[Rct]C:R[-1]C)"
End Sub
:thanx:
Robert