Link to home
Start Free TrialLog in
Avatar of RWayneH
RWayneHFlag for United States of America

asked on

Autofill a specific range size

I am trying to rewrite this, however I would like to use ActiveCell instead of A2, and autofill when there is a value in the cell to the right of the activecell.  How would I rewrite this?

Set MyRange = Range(Range("A2"), Range("A" & Range("B2").End(xlDown).Row))
    Range("A2").AutoFill Destination:=MyRange

Open in new window

SOLUTION
Avatar of Saurabh Singh Teotia
Saurabh Singh Teotia
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RWayneH

ASKER

All good solutions..  Like offset better, just because I am used to it.  Split up pts to all.  Thanks!!!