Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default sum at each page break

I have a worksheet that can span multiple pages. The requirement is to have
a sum of each page and a running total at the bottom of each page.
At the moment we have to create the worksheet so that the form prints on an
A4 sheet with the necessary formulae in fixed positions.

Problem to Solve:
Is it possible to just have a worksheet with the title headings etc just set
to print at the top of each page and for the necessary page totals and
running total to be automatically calculated once excel has determined where
the page break will be?
If yes, how? My programming knowledge of excel is limited so any help
greatly appreciated

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default sum at each page break

If the length of the report is a static, then it is not a problem to set and
print each time. But I doubt that is what you mean.
Whilst possible to make the dynamic version, you will have to find the end
of the page in the _BeforePrint, using the HPageBreaks collection, then
calculate or take from a hidden column the required values.
Insert these into the necessary cells (or footer).
Repeat for each page.

Personally, I would do the report in Access, with data from a linked table,
then Access will calculate it all for you once you have set up the report.
Or use one of VB6 Printer replacement classes that should support printing
to the Printer. Then you know exactly where you are on the page.

NickHK

"Newbie" wrote in message
...
I have a worksheet that can span multiple pages. The requirement is to

have
a sum of each page and a running total at the bottom of each page.
At the moment we have to create the worksheet so that the form prints on

an
A4 sheet with the necessary formulae in fixed positions.

Problem to Solve:
Is it possible to just have a worksheet with the title headings etc just

set
to print at the top of each page and for the necessary page totals and
running total to be automatically calculated once excel has determined

where
the page break will be?
If yes, how? My programming knowledge of excel is limited so any help
greatly appreciated

Thanks




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 Page Break Adjustments causes a page break each cell BKaufman Excel Worksheet Functions 2 September 10th 10 05:02 AM
How do I do page breaks when view menu doesnt page break preview HeatherF55 Excel Discussion (Misc queries) 0 September 21st 07 04:24 AM
change and/or remove page number watermark in page break preview juga Excel Discussion (Misc queries) 2 December 25th 06 10:15 AM
Hiding the page number in page break preview background. I need coffee, wake me up! Excel Discussion (Misc queries) 0 May 15th 06 10:32 AM
adding a new page break to an existing page break Edward Letendre Excel Discussion (Misc queries) 1 March 6th 05 09:29 AM


All times are GMT +1. The time now is 06:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"