Autofill code
I'm writing code in sheet 1 that does an autofill in sheet 2, but it does not seem to recognize the command. It simply ignores the line and proceeds to the next line of code.
As you can see, I've added references to the sheet name in the second line of code, but it still doesn't work.
any ideas?
'ActiveSheet.Selection.AutoFill _ Destination:=ActiveSheet.Range("A9:A" & pg_2_dates), _ 'Type:=xlFillDefault Sheets("WAProInt (2)").Selection.AutoFill _ Destination:=Sheets("WAProint (2)").Range("A9:A18"), _ Type:=xlFillDefault
Use Activate
Instead of selection use