I need excel to insert a formula into a row i.e. (A3:G3) then skip down to Row 5 and insert the same formula. I need Excel to do this all the way down to row 10080. I have tried combining a few VBA codes but nothing has worked. The code that shows the most promise is:
Sub xyz()
Dim i As Integer
For i = 3 To 10080 Step 2
Cells(i, 1).Formula = "=SUM(B1:C1)"
Next
End Sub
However, this formula only inserts my formula into column A. Please help!
Sub xyz()
Dim i As Integer
For i = 3 To 10080 Step 2
Cells(i, 1).Formula = "=SUM(B1:C1)"
Next
End Sub
However, this formula only inserts my formula into column A. Please help!