Excel - Macro to copy formula based on range of other column

Asked By Angus Beaumont on 04-May-12 05:41 AM
I have a user input column (A:A) where the user puts in Product name
there are then several formulas in B2, C2, D2, Etc and I want to run
a macro that will copy those down to  as far as the data extends in
column A. i.e if the product name runs to A10 the user can then press
a button and all formulas will copy down to B10, C10, D10, etc.

Or is there a better way of doing this?

thank you


isabelle replied to Angus Beaumont on 04-May-12 09:08 AM
hi Angus,

lastrow = Range("A65536").End(xlUp).Row
Range("B2:E2").AutoFill Destination:=Range("B2:E" & lastrow), Type:=xlFillDefault


--
isabelle



Le 2012-05-04 05:41, Angus Beaumont a ?crit :
Angus Beaumont replied to isabelle on 04-May-12 09:58 AM
lFillDefault

PERFECT....Thank you