Selection.AutoFill Destination:=Range

Joined
Jun 23, 2011
Messages
2
Reaction score
0
I have code I recorded

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top