I am trying to do a loop action (copy & paste onto another row) and will only break the loop when the whole range (each cell in a row) reaches 0.
Row A: H35:AK35 - (target copy row) Row B: H36:AK36 - Targeted Row to paste the values (target paste row/location) Row C: H37:AK37 - Delta between Row B and Row A
The loop action which copies Row A and pastes onto Row B should end when each cell in Row C reaches 0.
Here is my code, but it is not working.
Do Until Range("H37:AK37").Value = 0
Sheets("Timing").Activate
Sheets("Timing").Range("H35:Ak35").Select
Selection.Copy
Sheets("Timing").Range("H36:AK36" & i).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Loop
End Sub
I think the code is not checking if each cell in Row C: H37:AK37 is equals to zero.