Hi
I have the code below which get the sum of the data in a column irrespective of the data range. But now the no. of topRow is not a constant one. Everyday I have to change the value of the vRowTop. Is there any way that macro counts the value for vRowTop itself?
The rows above the range sometimes contain Blank cell and somtimes data.
ThanksvRowTop = 5
vRowBottom = ActiveCell.Offset(-1, 0).Row
vDiff = vRowBottom - vRowTop + 1
Selection.FormulaR1C1 = "=SUM(R[" & -vDiff & "]C:R[-1]C)"
Chetan![]()
Bookmarks