I've got some code within a For loop that works fine until I try to use autofill at the end of each iteration. Here is my code:
For y = 1 To 100
...
whole bunch of working code
...
Sheets("QuickTest").Activate
ActiveSheet.Range(Cells(y + 1784, 2), Cells(y + 1784, 101)).Select
Selection.AutoFill Destination:=Range(Cells(y + 1785, 2), Cells(y + 1785, 101)), Type:=xlFillDefault
Next
The error is raised on the final line (Selection.Autofill . . . )
Any ideas here would be greatly appreciated. Thanks so much for your help.
-Adam
For y = 1 To 100
...
whole bunch of working code
...
Sheets("QuickTest").Activate
ActiveSheet.Range(Cells(y + 1784, 2), Cells(y + 1784, 101)).Select
Selection.AutoFill Destination:=Range(Cells(y + 1785, 2), Cells(y + 1785, 101)), Type:=xlFillDefault
Next
The error is raised on the final line (Selection.Autofill . . . )
Any ideas here would be greatly appreciated. Thanks so much for your help.
-Adam