Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-22-2020, 04:13 AM
Kiminator321 Kiminator321 is offline Number Pages - not total pages, but actual pages. Windows 7 32bit Number Pages - not total pages, but actual pages. Office 2010 32bit
Novice
Number Pages - not total pages, but actual pages.
 
Join Date: May 2012
Posts: 11
Kiminator321 is on a distinguished road
Default Number Pages - not total pages, but actual pages.

Hi, I need to number my document with Page x of y, is mustn't number the cover page or the TOC page (or count them), I have a section break in and I have changed the footer to SECTIONPAGE instead of NUMPAGES - in the Field Code.



However the problem is that I need to insert another section break in order to put a landscape page in. This is where I am having my problem. I need it to continue the numbering correctly and only put the number of pages I have used and not the total number of pages of the document.

I have attached an example.

Thanks
Attached Files
File Type: docx Example of document.docx (24.9 KB, 5 views)

Last edited by Charles Kenyon; 04-22-2020 at 08:38 AM. Reason: remove spaces to improve readability
Reply With Quote
  #2  
Old 04-22-2020, 04:25 AM
macropod's Avatar
macropod macropod is offline Number Pages - not total pages, but actual pages. Windows 7 64bit Number Pages - not total pages, but actual pages. Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The preferred approach would be to put a field coded along the lines of:
{SET Sctn1 {SECTIONPAGES}}
in the first Section's header or footer then, for the 'y' part of the 'page x of y' numbering for the rest of the document, use a field coded like:
{={NUMPAGES}-Sctn1}

Note: The field brace pairs (i.e. '{ }') for the above examples are all created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac or, if you’re using a laptop, you might need to use Ctrl-Fn-F9); you can't simply type them or copy & paste them from this message. The spaces represented in the field constructions are all required.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 04-22-2020, 06:33 AM
Kiminator321 Kiminator321 is offline Number Pages - not total pages, but actual pages. Windows 7 32bit Number Pages - not total pages, but actual pages. Office 2010 32bit
Novice
Number Pages - not total pages, but actual pages.
 
Join Date: May 2012
Posts: 11
Kiminator321 is on a distinguished road
Default

Thanks for your reply:

To clarify the first code you said must go on the first section - do you mean the section that the numbers start on i.e not the cover page or the TOC?

I presume you also need to take the link to previous off between the sections?

So the code I put in was:
Page {Page \*Arabic \* MERGEFORMAT } of { SET Sctn1 } { SECTIONPAGES \*Arabic \*MERGEFORMAT }

Then on the second section (the landscape page) I put the following in, but it reflects the total number of pages instead of the total of the two sections.

Page {Page \*Arabic \* MERGEFORMAT } of { NUMPAGES { -Sctn1 } \*Arabic \*MERGFORMAT }

I have attached the document with the codes in as above
Attached Files
File Type: docx Example of document.docx (27.5 KB, 6 views)

Last edited by Charles Kenyon; 04-22-2020 at 08:39 AM. Reason: remove spaces to improve readability
Reply With Quote
  #4  
Old 04-22-2020, 08:33 AM
Charles Kenyon Charles Kenyon is online now Number Pages - not total pages, but actual pages. Windows 10 Number Pages - not total pages, but actual pages. Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,082
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

You need the SectionPages field inside the Set field.
{SET Sctn1 {SECTIONPAGES}} (as shown by Greg)
Not {SET Sctn1 } {SECTIONPAGES} as you have it.

This is not something you can set using the Insert Field Dialog; you have to manually edit the fields.
Reply With Quote
  #5  
Old 04-22-2020, 03:33 PM
macropod's Avatar
macropod macropod is offline Number Pages - not total pages, but actual pages. Windows 7 64bit Number Pages - not total pages, but actual pages. Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Kiminator321 View Post
To clarify the first code you said must go on the first section - do you mean the section that the numbers start on i.e not the cover page or the TOC?
No, I mean the Section containing your front matter (i.e. cover page & TOC).
Quote:
Originally Posted by Kiminator321 View Post
I presume you also need to take the link to previous off between the sections?
I'd have thought you already had that configuration between your front matter and the body.
Quote:
Originally Posted by Kiminator321 View Post
So the code I put in was:
You field coding is nothing like what I said to do. And you don't need any of those \*MERGEFORMAT switches.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #6  
Old 04-23-2020, 06:10 AM
Kiminator321 Kiminator321 is offline Number Pages - not total pages, but actual pages. Windows 10 Number Pages - not total pages, but actual pages. Office 2019
Novice
Number Pages - not total pages, but actual pages.
 
Join Date: May 2012
Posts: 11
Kiminator321 is on a distinguished road
Default

Sorry, I misunderstood your first instruction.


Ok, so I believe I have the correct coded field for the first sections.


I believe I have done exactly as you said for the next section but I am still getting total pages.


This is what I have:


Page { Page } of { = { NUMPAGES }-Sctn1 }


Thanks


Kim
Attached Files
File Type: docx Example of document.docx (27.3 KB, 14 views)
Reply With Quote
  #7  
Old 04-23-2020, 02:17 PM
macropod's Avatar
macropod macropod is offline Number Pages - not total pages, but actual pages. Windows 7 64bit Number Pages - not total pages, but actual pages. Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You have three one-page Sections for your front matter. Unless those Sections have different page layouts, that is quite unnecessary - manual page breaks is all you are likely to need to separate those pages and, perhaps, a 'different first page' page setup for the first Section. If you really do need three separate Sections for the front matter, those Sections' footers would need to be unlinked and you'd need to use:
{SET Sctn1 {SECTIONPAGES}}
{SET Sctn2 {SECTIONPAGES}}
{SET Sctn3 {SECTIONPAGES}}
respectively, in each of those Sections, followed by:
{={NUMPAGES}-Sctn1-Sctn2-Sctn3}
in Section 4.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #8  
Old 04-29-2020, 06:20 AM
Kiminator321 Kiminator321 is offline Number Pages - not total pages, but actual pages. Windows 10 Number Pages - not total pages, but actual pages. Office 2019
Novice
Number Pages - not total pages, but actual pages.
 
Join Date: May 2012
Posts: 11
Kiminator321 is on a distinguished road
Default

Thank you Paul


The document is complicated as the users are going to be deleting sections of the document before the main document starts.


I understand what you are saying and thank you, I understand this concept much better now.
Reply With Quote
  #9  
Old 04-29-2020, 03:07 PM
macropod's Avatar
macropod macropod is offline Number Pages - not total pages, but actual pages. Windows 7 64bit Number Pages - not total pages, but actual pages. Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Having some front matter, though, does not of itself required a separate Section for each item. As I said, the front matter in the sample you posted could all be handled in a single Section.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Number Pages - not total pages, but actual pages. Uneven lining on pages/ missing lines on end of pages Penatuna Word 5 09-24-2018 09:48 AM
Numbering with heading is mixed up in odd pages in regard to even pages Baflla Word 0 09-11-2016 05:25 AM
Multiple Master Pages dont sync with content pages generatorjoe Publisher 0 07-28-2016 10:12 AM
How to automatically make word document have even number of total pages? lorne17 Word 6 12-16-2014 02:48 PM
Number Pages - not total pages, but actual pages. Advanced page numbering: section pages in header, document pages in footer Albus Word 12 12-12-2014 01:36 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:00 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft