This will only work for one session of Excel at a time. IOW, It always start with the formula = "=SUM(B6:F6)"
Sub SamT_Static()
Static Iteration As Long
With Range("O5")
.FormulaR1C1 = "=+SUM(RC[-13]:RC[-9 + Iteration])"
.Resize(5, 1).FillDown
End With
Iteration = Iteration + 1
End Sub
I have to go, but if you need a dynamic sub, this is the planning I have done for a sub the will continue working across sessions.
Sub SamT_Dynamic()
''' Get last Address in Formula
'''' Get Column# of LastAddress
'If Column number = 14 Then Exit sub
''''Get Address Cells(6, ColNo + 1)
'Strip "$"
''''NewFormula = "=SUM(B6:" & NewAddress & ")"
'''' Range"O6".Formula = NewFormula
'Fill Down
End Sub
.