I am creating a macro to perform a min function and am trying to autofill the formula to the end of the row where there is data populated.
The issue is that the number of rows will change daily when new data is imported in.
Currently, I am recieving the following error.
Run-Time Error 1004
Autofill Method of Range Class Failed
Selection.FormulaArray = _
"=MIN(IF('I3'!R1C10:R60000C10=RC[-2],IF('I3'!R1C11:R60000C11>=RC[-1],'I3'!R1C11:R60000C11)))"
Selection.AutoFill Destination:=Range("$AT$1:$AT$6799")
The last line is highlighted.
The issue is that the number of rows will change daily when new data is imported in.
Currently, I am recieving the following error.
Run-Time Error 1004
Autofill Method of Range Class Failed
Selection.FormulaArray = _
"=MIN(IF('I3'!R1C10:R60000C10=RC[-2],IF('I3'!R1C11:R60000C11>=RC[-1],'I3'!R1C11:R60000C11)))"
Selection.AutoFill Destination:=Range("$AT$1:$AT$6799")
The last line is highlighted.