I am trying to copy paste values repeatedly depending on the cell value. I am having problem in my cell range where I would paste the copied value. I used the Do Until Iteration.
I am having trouble in this line: Range("B1:B(var)").Select
How can I used the cell value as the ending range of my selected cell?
For example, E1 value is 10. I want it to copy 10 ten times and be pasted only from B1:B10
Sub copy_loop()
Dim var As Integer
var = Range("E1").Value
i = 1
Do Until i > var
Range("A1").Select
Selection.Copy
Range("B1:B(var)").Select
ActiveSheet.Paste
Loop
End Sub