Better way of applying a formula down a column in VBA?

  • I used the macro recorder to get the initial code and incorporated it into the following:


    I'm thinking the line beginning "ActiveCell.FormulaR1C1" is not the best way to do this?
    I'm trying to tidy up the code as best I can



    Also posted here:


    http://www.mrexcel.com/forum/e…ications.html#post4507123

  • Re: Better way of applying a formula down a column in VBA?


    The best way is to use a Table which allows the use of Calculated Fields which means formulas are automatically added.


    Calculated Fields


    You can actually set formulas to copy down in Excel Options


    File -> Options -> Advanced -> Editing options ->Extend data range formats and formulas

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!