I'm trying to make a macro to sum a variable length column. I've tried a few different things but they haven't worked. What I want to do is:
If the active cell is cell B17, I'd like B17 to equal the sum of B1 to B16. Similarly if the active cell is cell D22, I'd like D22 to equal the sum of D1 to D21.
So basically it is summing all the cells above the active cell, in the selected column.
Thanks, James.