Hi,
What is wrong with this autofill code?
Range(Cells(m, 5), Cells(l, 5)).Select
Selection.AutoFill Destination:=Range(Cells(m, 5), Cells(n, 5)), Type:=xlFillDefault
I get an error with the line selection.autofill
Any ideas?
By the way the error code is 1004. Which suggests it's trying to copy and paste a whole row/column or more than 2516 rows/columns. It shouldn't be as it's part of a loop copying 47 rows at a time.
What is wrong with this autofill code?
Range(Cells(m, 5), Cells(l, 5)).Select
Selection.AutoFill Destination:=Range(Cells(m, 5), Cells(n, 5)), Type:=xlFillDefault
I get an error with the line selection.autofill
Any ideas?
By the way the error code is 1004. Which suggests it's trying to copy and paste a whole row/column or more than 2516 rows/columns. It shouldn't be as it's part of a loop copying 47 rows at a time.
Last edited: