subtotal at the end of printable page

thoomas

New Member
Joined
Apr 5, 2004
Messages
15
Hi! My problem is simple. I need a macro, which automatically adds a row at the end of every page just before page break and sums up the numbers for example in column F and puts that subtotal into this newly made row. Data>Subtotals does not work for me, since I don't need to sum up the data according to some criteria. I just want to sum everything that fits in a page. Is this possible at all? Can anybody help?
 
thanks for the answer. Yes, I have tried this code already before, but I don't like that it creates a new worksheet. I'd like that grandtotal is created automatically inside of the existing worksheet. Is it possible?
 
Upvote 0

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,216,057
Messages
6,128,524
Members
449,456
Latest member
SammMcCandless

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top