I am trying to come up with a macro to drag down the columns. I just recorded a macro that drags down the columns. Is there a way I can put a loop which drags down all the columns that I have?
I came up with something this this but it does not work. This code stops working just after dragging down the first column.
Sub Macro3()
'
' Macro3 Macro
'
For i = 1 To 100
Selection.AutoFill Destination:=ActiveCell.Range("A1:A4")
ActiveCell.Range("A1:A4").Select
Next i
End Sub
How can I make it work on all the 100 columns that I have? I appreciate any help as I am trying to learn this.