I am trying to build a loop to copy and paste a range of cells from one excel worksheet to another a number of times, as specified in a cell A1.
Sub AnalogPointBuild()
Dim i As Integer
Dim y As Integer
'only copy the number of times as the count in cell A1 of worksheet "inputs"
Sheets("inputs").Activate
y = Range("A1").Value
' copy the range of cells from one worksheet "Analog Template' to the "Analog Output"
For i = 1 To y
Worksheets("Analog Template").Range("B3:EU3").Copy Worksheets("Analog Output").Range("B3:EU3")
Next i
End Sub
I understand that during the iteration, the paste does not increment the cell value and paste it in the next one down.
Help! What's wrong with my code?