I am writing a macro that does formats a download of data that we have so it is as our Client’s require. I am very proud of this macro except I cannot get it to total some columns.
The columns are always in the same place (BI and BJ). The macro inserts a column after BJ and then I need it to:
Add BI2 and BJ2 together into BK
Copy the addition formula all the way down to the last row (which varies on each download – could be 2, could be thousands).
Add a total to the bottom of BI, BJ and the new BK
The macro then does some other stuff. I have managed in a very clunky way to get the first two sentences above to work, but it is very clunky. I cannot get the last sentence at all as it will not adjust according to the number of rows.
Can anyone help me as I am sure I am missing something fundamental, I can do this easily when working live but my macro will not replicate even though I am careful with my relative and absolute referencing. I am not a developer, I am an advanced excel user who helps out others in my Company but the word ‘advanced’ is subjective obviously.
Cheers
Kate