A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Printing Page Numbers for Multiple Worksheets



 
 
Thread Tools Display Modes
  #1  
Old June 14th, 2004, 03:04 PM
Greenguitar
external usenet poster
 
Posts: n/a
Default Printing Page Numbers for Multiple Worksheets

I am trying to print an entire workbook and would like the page number
to be specific to each worksheet set.

For example, my workbook contains 7 sheets, each of which has a unique
header that contains the command for Page X of X Pages. Each sheet
contains multiple pages.

If I print the entire workbook, I can get the printout for each sheet
to begin with a 1 by manually setting the First Page setting to "1" in
Page Setup. No problem there.

However, my question is...Can I control the command for "X Pages"? For
example, when I print the entire workbook, I'd like the first page for
Sheet 1 to read "Page 1 of 4 Pages" (when there are 4 pages in this
sheet), Sheet 2 to read "Page 1 of 3 Pages", and Sheet 3 to read "Page
1 of 7 Pages". The best I get right now is that each Sheet reads Page
X of 14 Pages" (the total of all pages in the print job.

Any ideas? This would be a huge time saver for me.


---
Message posted from http://www.ExcelForum.com/

  #2  
Old June 14th, 2004, 03:12 PM
Jan Karel Pieterse
external usenet poster
 
Posts: n/a
Default Printing Page Numbers for Multiple Worksheets

Hi Greenguitar,

Any ideas? This would be a huge time saver for me.


I guess a macro would do:

Sub PrintSheets()
Dim oSH as Worksheet
For Each oSH in Activeworkbook.Worksheets
oSH.Printout
Next
End Sub

Regards,

Jan Karel Pieterse
Excel MVP
www.jkp-ads.com

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:03 PM.


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