L
Legacy 173085
Guest
I'm working on a macro to automate some reports I run at work every week and am stuck at trying to get my macro to add a subtotal formula to the bottom of the last column.
What I've been trying to do is adapt a macro which finds the last cell (by ctrl jumping down to bottom and moving offset(7, 0)) - from here names the cell at Offset(-2, 0) as "BOTTOM", and cell I8 as "TOP" - then writes them into my subtotal formula (i.e. Activecell =subtotal(3,TOP:BOTTOM) --- but this doesn't seem to work....
I don't really know what i'm doing i'm very new to vba. thanks in advance for any help you can give!
What I've been trying to do is adapt a macro which finds the last cell (by ctrl jumping down to bottom and moving offset(7, 0)) - from here names the cell at Offset(-2, 0) as "BOTTOM", and cell I8 as "TOP" - then writes them into my subtotal formula (i.e. Activecell =subtotal(3,TOP:BOTTOM) --- but this doesn't seem to work....
I don't really know what i'm doing i'm very new to vba. thanks in advance for any help you can give!