Multiple SUM's in a column
Hi Howard,
Am Thu, 6 Nov 2014 10:19:48 -0800 (PST) schrieb L. Howard:
Header
1
2
3
4
5
6
7
8
9
10
try:
Sub MultiSum()
Dim i As Long, LRow As Long
Dim myStart As Long
Dim mySum As Double
With ActiveSheet
LRow = .Cells(Rows.Count, 3).End(xlUp).Row
myStart = 2
For i = myStart To LRow
mySum = 0
Do
mySum = mySum + .Cells(i, 3)
i = i + 1
Loop While Len(.Cells(i, 3)) < 0
.Cells(i, 3) = mySum
myStart = i + 1
Next
End With
End Sub
Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
|