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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,216,060
Messages
6,128,549
Members
449,458
Latest member
gillmit

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