Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JK JK is offline
external usenet poster
 
Posts: 78
Default Footer Page Number Question

My Excel 97 application has several reports. For 1-page reports I write the
footer 1 of 1. For 2-page reports I write &[Page] of &[Pages]. The problem
is when all reports (single and multiple page) are printed out at once the
2-page reports refer to the total number of pages being printed. When a
2-page report is printed out with 6 1-page reports, instead of being 1 of 2,
2 of 2, it becomes 1 of 8, 2 of 8.

Is there a VBA solution?

Thank you in advance.
Jim Kobzeff


  #2   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Footer Page Number Question

The following should print out every worksheet in your book. Since each
sheet is printed separately, page numbering should turn out okay.

Sub PrintAll()
Dim WkSht As Worksheet

For Each WkSht in WorkSheets
WkSht.PrintOut Copies:=1
Next WkSht

End Sub

"JK" wrote:

My Excel 97 application has several reports. For 1-page reports I write the
footer 1 of 1. For 2-page reports I write &[Page] of &[Pages]. The problem
is when all reports (single and multiple page) are printed out at once the
2-page reports refer to the total number of pages being printed. When a
2-page report is printed out with 6 1-page reports, instead of being 1 of 2,
2 of 2, it becomes 1 of 8, 2 of 8.

Is there a VBA solution?

Thank you in advance.
Jim Kobzeff



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
Footer - Page Number problem Nicci Excel Discussion (Misc queries) 4 May 2nd 23 03:42 AM
Format page number in excel footer to start at a specific page # straitctrydncr Excel Discussion (Misc queries) 4 April 28th 23 07:45 PM
Unique Footer for each page in worksheet with a page number Keys2thecitY Excel Worksheet Functions 0 September 7th 09 06:06 AM
Continuation of Page number in footer Junaid Excel Worksheet Functions 2 January 25th 09 11:41 AM
Page Number - not in header/footer hardtop Excel Discussion (Misc queries) 1 November 22nd 07 12:49 PM


All times are GMT +1. The time now is 11:14 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"