Hi all,
Whenever I record a macro to code a series (i.e. 10-30 steps) of simple steps (e.g. add/delete columns, new column headers, insert formulas and copy down to bottom), it often includes many instances of the formulas going to the very bottom of the data set. Super basic.
But each time I run the macro on a new data set I have to Ctrl+Find/Replace to change the last row values (i.e. A2:A45156, then A2:53218, etc.) in the VBA window.
Because I'm using the macro recorder the code is super long and it just seems inefficient having to always change the last row number. (And I know there are quicker ways but the code solutions online seem really long - i.e. I wouldn't know where/how many times to insert the solution code!)
Once I record my steps is there is a short/clean way to add a code so I don't have to keep doing this find/replace on the last row of active data?
Many thanks.
James
Whenever I record a macro to code a series (i.e. 10-30 steps) of simple steps (e.g. add/delete columns, new column headers, insert formulas and copy down to bottom), it often includes many instances of the formulas going to the very bottom of the data set. Super basic.
But each time I run the macro on a new data set I have to Ctrl+Find/Replace to change the last row values (i.e. A2:A45156, then A2:53218, etc.) in the VBA window.
Because I'm using the macro recorder the code is super long and it just seems inefficient having to always change the last row number. (And I know there are quicker ways but the code solutions online seem really long - i.e. I wouldn't know where/how many times to insert the solution code!)
Once I record my steps is there is a short/clean way to add a code so I don't have to keep doing this find/replace on the last row of active data?
Many thanks.
James