Printing Page Numbers for Multiple Worksheets

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

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

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

However, my question is...Can I control the command for "X Pages"?  Fo
example, when I print the entire workbook, I'd like the first page fo
Sheet 1 to read "Page 1 of 4 Pages" (when there are 4 pages in thi
sheet), Sheet 2 to read "Page 1 of 3 Pages", and Sheet 3 to read "Pag
1 of 7 Pages".  The best I get right now is that each Sheet reads Pag
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

6/14/2004 2:04:41 PM
excel.misc 78881 articles. 5 followers. Follow

1 Replies

Similar Articles

[PageSpeed] 43

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
End Sub


Jan Karel Pieterse
Excel MVP

jkpieterse (271)
6/14/2004 2:12:39 PM

Similar Artilces:

Call a Sub from another Worksheet
I can't seem to get this to work: Dim wb As Workbook Set wb = Workbooks.Open("z:\journal entry.xlsm") Application.Run wb.Name & "!CreateSubmittal" The Sub CreateSubmittal is designated as "Public Sub CreateSubmittal()" or not. The Sub is in the THisWorkbook object or Module1. Neither works. Ideas? Thanks! Hi Mike, It's all in the Quote marks. Note the Apotrophe enclosed in double quotes on both ends of the file name variable. Application.Run "'" & wb.Name & "'" & "!CreateSub...

How do I print a list of the directory contents
I need to print the disk directory contents. In DOS this was possible. Is it possible in WORD? Thanks No - but you could use the freeware Printfolders utility you can download from my web site that will produce a text listing that you can open in Word. -- <>>< ><<> ><<> <>>< ><<> <>>< <>><<> Graham Mayor - Word MVP My web site Word MVP web site <>>< ><<> ><<> <>>< ><<> <>>< <...

printing copies
under print options: Number of copies___. It will only print out 1 copy. I say 5 and it still prints out 1. I am a new user of 2007 Excel I suspect the problem is with the printer. Try getting the newest driver best wishes -- Bernard V Liengme Microsoft Excel MVP remove caps from email "Val in Texas" <Val in> wrote in message > under print options: Number of copies___. It will only print out 1 copy. > I > say 5 and it still prints out 1. ...

Multiple invoices to multiple customers from one order?
I think that this is not possible, but I need to ask since it will be happening on a regular basis: We have a new contract with a customer who has independent contractors. The contractors will come in and purchase a specific large item from us - mother company will pay a specific monetary amount and the contractor is responsible for the rest. So basically, we need to create one order, but have two invoices to two different customers that are linked to the original order. Is there ANY way to do this. Thanks Yes, You can use National Accounts for this. You can setup your main contra...

Ghosted print and print preview
Hello everyone, I have a problem with printing in excel. The print and print preview options appear ghosted. I still can print through the print icon on the toolbar. Any suggestions??? Martin ...

Print Dynamic Range
I have a basic excel template used for ordering parts. It runs from A1:N250 and I can print easily repeating rows 1:11 on each page (contains job details) . Trouble is sometimes there may only be 10 part numbers requiring only first page and I finish up throwing away trees by printing entire sheet! I know I can reset print area each time am setting this up on Sharepoint for multi users and need a macro/button to recognise number of items and print accordingly. Any help greatly appreciated -- Message posted via Sub SetPrintArea() 'change this cons...

sumproduct .. validating 2 criterias (multiple tabs)
hi guys, i am trying to add additional functionality to my Project Budget Expendature worksheet of which some of you may have seen. anyways, the idea is to have sumproduct calculate all items that have the same GL code & date of which it was purchased (date of purchase) currently i have the following TAB: Spend Calendar ROW C8:N8 = Month #'s (Jan, feb ect) COL B13:B36 = GL Codes (130000,190000 ect) TAB: 001-013 (13 tabs) CELL C6 = Date of Purchase COL C24:C37 = GL Codes of each item within the purchase COL J24:J37 = Total cost of the item which the GL Code is related to can someon...

TCP/IP printing
Hello, I have a networking question. I have a print device with a static IP address on one network. A computer on another network can connect to the printer (NBT is enabled and so is LPR) and the drivers are installed but cannot print. I know this is correct behavior but want to know in detail why it seems to half work. I am guessing it has to do with port 138,139 and 515 but not positive. Probably a better question to ask a networking forum but hey. Thanks can you access the printer through the printer IP address? -- ashvin :D Just chill -pls post your feedback on...

Printing booklet
I am producing a 50 to 60 page booklet using Pubisher 2003. The page format will be using 8.5 x 11 paper folded in half. I need to print both sides of the paper. How do I print the booklet so that I print half the project on one side of the paper and the other half on the back. Will publisher keep track of the pages so that for example; that page 2 and page 50 print on the same side/sheet of paper so when all pages are printed, folded and bound the book reads correctly. Thanks John Houston, Tx more info...I am using a single side printer so I have to run the pages through twice ...

Drawing Page Orientation Doesn't Match Printer Paper Orientation #2
Version: 2008 Operating System: Mac OS X 10.4 (Tiger) Processor: Power PC The thumbnail preview shows that the drawing page orientation doesn't match the printer paper orientation. I can not get the page orientation to match. When I change it to letter, I can see the document change to landscape. When I change the page orientation to landscape, it changes the document to portrait. The two will not be the same. This is in Word 2008, it also happened in an older version of Word. Help, what do I do? ...

Check printing in GP 7.0
Dear Guys, I have check payments for vendors, where I'm dealing with LOCAL CURRENCY & FORIGHN CURRENCY. When I paid by check in LOCAL CURRENCY then the amount in words prints perfectly but if i paid by check in FORIGN CURRENCY then the amount in word prints in numeric which i want to print amount in words instead of numbers. Please help me to print checks amount in words for FORIGN CURRENCY as well. Your suggestion would be appricated on above issue thnx Shamin ...

Excel BUG (All Versions) Excel Macro Margins using Print Preview
Where can i post this BUG? (Excel Macro Margins using Print Preview) Is there an Excel BUG reporting site? Steps: 1) New worksheet, write something in it 2) Start recording a new macro 3) File -> Print Preview 4) Click on the Margins Button, the page margins will appear, so that you can visually change and move them 5) Set one or more margins 6) Close the Print Preview 7) Stop the Macro What happened is that in the VBA code there will be writtenthe following lines: ..LeftMargin = Application.InchesToPoints(0.91) ..RightMargin = Application.InchesToPoints() Where in second line ther...

Multiple Pivot tables from One selection
I would like 2 or 3 pivot tables to use on pivot table selection. I.e the selection criteria of the 1st pivot table on the menu page determines what the page data of the other pivot table displays on seperate sheets where the other pivot tables are contained. So the selection of one pivot table controls the rest. -- dapo ------------------------------------------------------------------------ dapo's Profile: View this thread: Check the "Synchronize 2 Piv...

"Tiled" print setting.
I just want the page that I designed to print on one page! I can't change the print setting "tiled" and as it is, it's printing on four pages all broken up. It is possible that you have created your document on a paper size that is not supported by your printer. Try changing your paper size to 8 1/2 by 11 and see if the print options are more to your liking. "MissMarple" <> wrote in message >I just want the page that I designed to print on one ...

CHtmlView and Printing
Hi Everyone, The CHtmlView is giving me alot of head aches. Here is what I am doing. I am opening an XML file (being formatted using XLST) in a hidden CHtmlView and printing it. Here is how the process goes: 1. I create the XML file on the fly. 2. load the XML file in to CHtmlView. 3. Once loaded I tell it to print the resulting HTML page. 4, I need to delete XML file after the printing is done. (this is the problem). I can't figure out how to find out when the CHtmlView is done printing. CHtmlView::OnFilePrint is asynchronous. And CHtmlView doesn't tell me that it is currently p...

Problems with printing
Dear all I have an application, which has been working without problems for the last 7 years. The application has some printing capabilities. Now, we have just gotten a new printer (HP Laserjet CM4370), and when I try to print, my application crashes. The app crashes in the print setup dialog even before I press OK. If I select any other printer as default printer, the app doesn't crash. Then I can show the print setup dialog without problems. But then, when I select the CM4370, the app crashes again, even if I do not press OK. Even if I choose to not show the print setup dialog, and j...

How to assign a username to multiple exchange profiles
Hi, I have a Windows XP PC with Outlook 03. (Although I also have this same problem on another PC with Outlook 07). I have two different emails on two separate exchange hosts. I have created two Mail Profiles and attached one email to each. When I open Outlook, I am prompted to select which Profile to use, and then I am prompted for a username and password. The username is already filled in, i.e. guessed by Windows/ Outlook. The password ALWAYS needs to be typed in. The problem is that Outlook/ Windows always guesses the username as the last one used. This means, if I clo...

Printing--How not to Print Bkground
In my wrksht there is a cell range highlighted with an autofill color. We use this to show the user where to enter the data. Is there anyway to avoid printing this background color. We want to keep the color in the cell range in our wrksht but we dont want it printed. Hi Jeff, have you tried Print preview, Setup, Sheet, Black & white? Gilles "Jeff" <> wrote in message news:001201c3ba81$023b8af0$a301280a@phx.gbl... > In my wrksht there is a cell range highlighted with an > autofill color. We use this to show the user where t...

Multiple Bar Chart Formats
How do I combine a bar chart with summary data (for example, 5 categories of summary data) with a stacked bar chart (a sixth category made up of the parts that make the summary)? For example, I have 6 construction projects. I wish to show summary data for five of the projects (assume they are complete) as a bar chart. I have 4 categories of subtotals that make up each summary. In the case of the sixth project, wish to show these sub totals as a stacked bar. I want to do this on one chart. I think you want a stacked chart for all of this if I understand your question. Set up your data ...

Printing in Vista
After each document prints another sheet prints which has the filename, directory,title, subject, author, creation date, last saved on, total editing time, last printed on. These are just some of the items that print on this one sheet of paper. Can anyone help me? In your Print dialog, uncheck "Document Properties." On Nov 30, 1:34=A0pm, peppermint patty <peppermint> wrote: > After each document prints another sheet prints which has the filename, > directory,title, subject, author, creation date, last saved on, total edi= ti...

Formula/Macro to tally up numbers in Excel
I have a list of numbers in a column, e.g. :- 1 4 6 1 35 14 15 15 2 1 6 6 1 19 15 5 and want the computer to work out for me, how many times number x has turned up in column B? I presume this is possible with a function/macro within excel fairly easily? Any advice/pointers in the right direction would be appreciated. Please prefably reply in the newsgroup, or via email to "", removing the .DELETE from the end of my address. Thanks, Mark Pyne Hi Have a look at COUNTIF() and try something like: =COUNTIF(B:B,1) to count how many 1s there ...

Sales Return with Lot Number
Hi All, I have spent almost 4 days now tryingt o figure out whats wrong, search every document realated to Sales Return , SOP Integration...... but of no help.... I am trying to integrate the Returns in SOP Transaction Entry Screen using Integration Manager. we are running GP10 with SP1. Issue Example: Item No: TEST101 UofMSchedule: EACH UofMSchedule Master Table: EACH = 1 = EACH CASE = 10 = EACH PACK = 20 = EACH I am able to integrate all the items with lot as return Returned Qty = On Hand. if the item UOM = EACH (which is actullay Base UOM). But if the same item is returned in C...

Access Input Mask for phone number
What is a phone number input mask that would result in the first case 916.723.5828 and second case if 916 is not entered 723.5828 notice the first "." is left off. "Bruce" <> wrote in message > What is a phone number input mask that would result in the first case > 916.723.5828 and second case if 916 is not entered 723.5828 notice the > first > "." is left off. "Bruce" <> wrote in message n...

How do you customize the 'Print View'?
Ho do you customize the print view of the different type of records? TIA Antony On Apr 24, 5:09 pm, "Antony" <info AT webpc DOT biz> wrote: > Ho do youcustomizetheprintviewof the different type of records? > TIA > Antony You are probably going to need to create a custom SQL Server Report to get what you need. Or you can create a mail merge via MS word and access a CRM Table or View using ODBC. Post what you need exactly and you might get some more specific direction, or possibly someone has what you need already. Scott Moore ...

Save as Web Page #3
Each time I save my workbook as an Excel workbook, I need to Save As a Web Page, so that the information is available on the company intranet. Is there a way I can automate this, so that instead of clicking Save, then clicking Save As Web Page, and navigating to the web folder, then closing the web page version, and re-opening the excel version to continue my work, can I run a macro, or something a bit less cumbersome? Couldn't you record a macro when you do it once manually. Then just replay that macro when you need to do it again (and again and again). File|SaveAs|webpage foll...