- Joined
- Jun 23, 2011
- Messages
- 2
- Reaction score
- 0
I have code I recorded
and I need to change the range to accept a dynamic number of rows down. It will always start with AQ2.
From looking online I've already tried
but I get an error:
Run-time error '1004':
AutoFill method of Range Class failed
any help would be greatly appreciated
Thank you,
David92595
Code:
Range("AQ2").Select
Selection.AutoFill Destination:=Range("AQ2:AQ100"), Type:=xlFillDefault
and I need to change the range to accept a dynamic number of rows down. It will always start with AQ2.
From looking online I've already tried
Code:
Range("AQ2").AutoFill Destination:=Range("AQ2", ActiveCell)
but I get an error:
Run-time error '1004':
AutoFill method of Range Class failed
any help would be greatly appreciated
Thank you,
David92595