Share via

Retain worksheet page numbering when printing multiple worksheets at once

Anonymous
2023-02-17T02:03:45+00:00

Hi,

Really hoping someone can help me out here! I want to RETAIN the worksheet page numbering when printing multiple worksheets at the same time.

By way of example:

Let's say I have a workbook with 3 worksheets.

Worksheet 1 has 3 pages

Worksheet 2 has 1 page

Worksheet 3 has 2 pages

When I select all three tabs and File > Print, the page numbering goes Page 1 of 6, Page 2 of 6, etc

What I want is to be able to select all three tabs, but RETAIN the worksheet numbering such that Worksheet 1's printed pages show Page 1 of 3, Page 2 of 3, Page 3 of 3, followed by Worksheet 2 showing Page 1 of 1, and Worksheet 3 showing Page 1 of 2, Page 2 of 2.

Is there a way to do this outside of File>Print on each individual Worksheet? (..because my actual workbook has 20 worksheets and doing each worksheet individually is a lot of manual effort!)

Many thanks for your help,

V

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

17 answers

Sort by: Most helpful
  1. Anonymous
    2023-04-05T10:12:23+00:00

    Hi V,

    I don't have the full solution for your (and my) problem, but resetting of page numbering can be set on Page Setup/Page tab. Here there is a field for entering the number of the first page . It is set to Automatic by default, but if you enter 1 here, then all worksheets will begin with 1 if you select multiple sheets. The other part of the problem (that of resetting the total pages for each workheet) remains unfortunately still outstanding. So it must be "hardcoded" for every workheet.

    Cheers,

    RG

    Was this answer helpful?

    3 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2023-02-20T20:44:03+00:00

    Hi Leon,

    So to summarise, there is no setting within Excel that retains the worksheet-level page numbering when you select multiple worksheets to print at the same time. (Note that if anyone else reading this knows otherwise, I would be very grateful to hear from you!)

    My workaround options therefore are:

    1. retain the "Pg &[Page] of &[Pages]", and print each worksheet individually
    2. change the paging to "Pg &[Page]-x of Tot_Worksheet_Pages", where Total_Worksheet_Pages is a hard-entered constant representing the number of pages in that worksheet, and the x in &[Page]-x represents the total number of pages in the set to be printed less the constant needed to achieve the desired page reference for that particular worksheet - noting that if you change the set of worksheets being printed or increase/decrease the page total, you will need to update all of the "&[Pages]" and some/all of the x's within each worksheet.

    Appreciate your time Leon and I'm pleased to learn of the clever -x function in page numbers - that will be handy at other times, but I think printing worksheets individually will remain my workaround in the meantime.

    Cheers

    V

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2023-04-10T03:28:04+00:00

    Thank you Jan, I am very grateful for this code, and this solution. It is a big help to me.

    I note that when I print it to pdf, it asks me to save multiple times (ie each worksheet pdf is saved separately). Is there a way to get it to save all selected worksheets to one pdf (but with worksheet-level page numbering)?

    Thank you again Jan.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2023-02-18T13:28:13+00:00

    Hi Leon,

    I can see how this would work but am I right in thinking that as soon as the number of pages in one of my worksheets changes, I will have to change the #pages on that worksheet to the new #pages constant and I will have to change the &[Page]-x number for that and all worksheets following as well?

    And if I do a different subset of worksheets to print, I would need to manually go into each worksheet's footer and change the -x value so that it prints correctly..?

    Thanks

    V

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  5. Anonymous
    2023-02-17T05:36:41+00:00

    Hello, I am Leonielhou, an Independent Advisor and a user like you, I am happy to help clarify any questions you may have.

    Click on the first worksheet tab, and then click on the Page Layout tab on the ribbon. Click on the arrow in the Page Setup group to open the Page Setup dialog box. In the Page Setup dialog box, click on the Header/Footer tab. Click on the Custom Footer button, and in the Footer dialog box, type "Page &[Page] of 3" (without the quotes) in the Left section. This will ensure that the page numbers for the first worksheet show as "Page 1 of 3", "Page 2 of 3", and "Page 3 of 3". Click OK to close the Footer dialog box, and then click OK again to close the Page Setup dialog box. Repeat the above steps for the other worksheets, but modify the custom footer to match the number of pages in each worksheet.

    Was this answer helpful?

    0 comments No comments