We are working with multiple documents. The document when complete will reference Volume 1, Volume 2, etc. with a page number that relates to that page in that volume (which can encompass more than one file). This is currently in the footer of the files. In addition, we need a running page number that will show the “physical” number of the page as it fits in the total. To get this, each document would have to have another page number field that would be set to start numbering one more than the last number of the previous file, so we
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
multiple page numbers
Home » Forums » AskWoody support » Productivity software by function » MS Word and word processing help » multiple page numbers
- This topic has 16 replies, 7 voices, and was last updated 22 years, 7 months ago.
AuthorTopicWSfav25111
AskWoody LoungerMarch 28, 2001 at 8:24 pm #354397Viewing 2 reply threadsAuthorReplies-
WSMikeB
AskWoody Lounger -
WSRajesh
AskWoody Lounger -
WSRajesh
AskWoody Lounger -
WSfav25111
AskWoody LoungerMarch 29, 2001 at 3:06 pm #520762The AutoNum and Seq fields are not available in the document footer. The following appears to have done the trick.
Insert the page number field for the first set of numbers that start with page one, then insert the following field {= {Page}+24} for the second set of numbers that continue the page numbering after the last page in the previous document. This field adds the current page number plus the total number of the pages in the last document. Note: If the pages in the previous document increase, you must change the number that is added to the page field to reflect this change.
-
WSPhil Rabichow
AskWoody LoungerMarch 29, 2001 at 8:56 pm #520821Here is a more general way of creating a formula, which will do what you want with page numbers. I wrote this for someone who was using it for Chapters, but you can modify the text accordingly.
Page Numbering Consecutively Between Files
Suppose you want to number documents consecutively (e.g. Chapter 1.doc, Chapter 2.doc, etc.) & you don’t want to use either Master Documents or Office Binder. For example, if Chapter 1 has 20 pages & Chapter 2 has 30 pages, you want Chapter 2 to start numbering “Page 21 of 50”. Do the following:
In Chapter 1:
1. Open the footer & position the insertion point where you want the page number.
2. Press Ctrl+F9. Word will position the cursor between field braces, i.e. {}.
3. Type PAGE, so that it looks like {PAGE}
4. Move the cursor to the right of the last brace, type a space & “of” (or whatever you wish to separate the two fields.
5. Repeat step 2 (Press Ctrl+F9) & type NUMPAGES, so that it looks like {NUMPAGES}
6. Select the {NUMPAGES} field & go to the Insert Menu & choose Bookmark (or just press Ctrl+Shift+F5). Choose a simple bookmark name, e.g. “bk” (without quotes).In Chapter 2, you will open the footer, but instead of {PAGE} of {NUMPAGES}, you will use the following formulas:
Instead of {PAGE}, you will use
{ ={ includetext “Chapter 1.doc” bk ! } + { page } }
To do this:
1. Press Ctrl+F9
2. Type =
3. Press Ctrl+F9 again
4. 4. Type INCLUDETEXT “Chapter 1.doc” bk ! I’ll explain in a minute.
5. Use the right arrow key to move past the closing field brace (}), type a space, a +, a space
6. Press Ctrl+F9 & type PAGE, so that it looks like {PAGE}
7. Instead of {NUMPAGES}, you will use { ={ INCLUDETEXT “Chapter 1.doc” bk ! } + { NUMPAGES } }Note that this is identical to the first field formula, except you add {NUMPAGES} at the end, instead of {PAGES}.
8. You must now select the entire field in Step 7 & bookmark it (just like you did in Step 6 for Chapter 1). Give it the same bookmark name, bk, just because it’s easier to be consistent.
Note that in Chapter 3, you must change the INCLUDETEXT field to refer to Chapter 2. In Chapter 4, you must change the field to refer to Chapter 3, etc.
Note too: it’s important to use the “!” switch at the end of the INCLUDETEXT fields. Since the INCLUDETEXT field refers to a {NUMPAGES} field in a previous document, this switch prevents the fields from updating in the current document. Otherwise, Chapter 2 would start numbering with 31 (there are 30 total pages in Chapter 2) instead of 21.
Finally, this assumes all your chapters are in the same folder. Otherwise, you must use the full pathname & double backslashes in the INCLUDETEXT field, e.g. “C:My DocumentsFolderSubfolderChapter 1.doc”
Hope this helps.
-
WScbolcego
AskWoody LoungerJanuary 25, 2002 at 6:23 pm #566273I am trying to follow these instructions. With my documents, the code is as follows (using Ctrl-F9, etc., to enter it):
{ = {INCLUDETEXT “02 Req.doc” BK !} + {PAGE} of { = {INCLUDETEXT “02 Req.doc” BK !} + {NUMPAGES}
but I am getting the follwoing error message:
!Syntax Error,! of !SyntaxError,!
I’ve checked that my BK footnote exists properly ini )2 Req.doc.
Do you have any ideas as to what I’ve done wrong?
Thanks,
-
WSjscher2000
AskWoody Lounger -
WScbolcego
AskWoody LoungerJanuary 28, 2002 at 2:08 pm #566633I checked my actual code again, and I made an error in showing the brackets in my post. I actually have them as follows:
{ = {INCLUDETEXT “02 Req.doc” BK !} + {PAGE} } of { = {INCLUDETEXT “02 Req.doc” BK !} + {NUMPAGES} }
I get two syntax errors rather than the desired page counts. Help, please!
Caroline
-
WScbolcego
AskWoody LoungerJanuary 28, 2002 at 5:42 pm #566684I kept working on this and was finally able to get it to work, but only if I put in the entire directory path, rather than just the name of the document. All documents are in the same folder, so theoretically, I should only have to use the document name. Any ideas as to why that doesn’t work? My preference would be to not use the full directory path.
Thanks,
Caroline -
WSPhil Rabichow
AskWoody LoungerJanuary 30, 2002 at 12:49 am #567016Hi Caroline:
Sorry I’ve been unable to get back to you sooner. With Includetext fields, you generally use the following syntax:
{ INCLUDETEXT “DriveFolderSubfolderfilename” }The quotes are necessary in case there are spaces & note the use of DOUBLE backslashes. You can only avoid using the complete path if both the target & source documents are in the same folder.
If you want to send me the files in zip format or if you can post them here, I’ll take a look at it.
Hope this helps.
-
-
WSgunnbc
AskWoody LoungerSeptember 9, 2002 at 11:19 am #615164Hi Phil
A colleague and I wished to do the above today. He uses Word 2000 and I’m on XP. We both followed your directions to the T but he ends up with a !syntax error and I get a !Invalid Character Setting of !Invalid Character Setting:
Here is what I put into the Chap 2 footer
{ = {INCLUDETEXT “Chapter 1.doc” bk ! } + {page}} of { = {INCLUDETEXT “Chapter 1.doc” bk ! } + {NUMpageS}}My documents are in the same folder and are named Chapter 1 and Chapter 2.
Is there something quirky about 2000 / XP or have we done something glaringly obvious?
The humble pie has been prepared and is ready for eating.Brian
-
WSPhil Rabichow
AskWoody LoungerSeptember 9, 2002 at 12:46 pm #615189Hi Brian:
I assume you’ve looked at some of the previous posts. While I don’t have Word 2002, I know it works in 2000. Did you try putting in the full path & using double backslashes. And you must have bookmarked the {NUMPAGES} field in the previous chapter & then bookmark the combined field (after the “of”) in each subsequent chapter.If you want, why don’t you post a couple of pages from each chapter here. You can garble the text if you want. Of course, when someone downloads it, their path will be different, but we can take a look at the fields.
Cheers,
-
WSgunnbc
AskWoody LoungerSeptember 11, 2002 at 11:22 am #615871Phil
Yes I did look at the previous posts. I tried putting in the full paths with double back slashes and I still get the same error message. !Invalid Character SettingNow here is where it all gets a bit strange.
I was checking out Charles Kenyon’s post 91522 description and tutorials about the INCLUDETEXT field. I downloaded his tutorial files to an internet PC at work and then copied it to my own PC. I now had 2 identical copies of the tutorial on different PCs.
Both PCs run the same version of Word (XP) but one PC runs under Windows XP and my own runs under Windows 98.
On the PC running XP the footer was normal and read exactly as expected. On the W98 PC the exact same document footer had the error message as above !Invalid Character Setting
I copied and pasted Charles
-
WSPhil Rabichow
AskWoody LoungerSeptember 11, 2002 at 4:55 pm #615973I couldn’t tell anything from your attachment. A picture won’t help (the field codes are blocked anyhow). I wanted to see the actual document or a portion of it. Can you get any INCLUDETEXT field to work on this PC? for any file? even without the ! switch? The only other thing I can think of is that you have some setting under Control Panel/Regional Settings that make one or more characters in the field invalid. Do you get the same problem if you insert everything from the Insert/Field dialog box?
-
WSgunnbc
AskWoody LoungerSeptember 14, 2002 at 5:56 am #616731Sorry that the pictures were unhelpful I just wanted to show how strange the results were.
I am now including the two “Chapters” I am using to test the field codes on the WXP machine. In these I get the field codes to work. I note that if Ihe cursor is in the field and happen to press F9 then the codes no longer work and the only way to resurrect the situation is to close the document without saving.
When I copy these working docs to my W98 PC the field codes give the usual error message.
To say I am confused would be doing an injustice to confused people.
Brian -
WSPhil Rabichow
AskWoody LoungerSeptember 15, 2002 at 12:12 am #616877Hi Brian:
Sorry for the delay in getting back to you. When I looked at your files, I also got an error message, but it was different. It said: “Error! Unable to open file!” or “!Syntax error, !”, depending upon what I did. It took me awhile to get it to work, & quite honestly, I’m a little confused myself. Here’s what I did to get it to work.1. If I changed the “Chapter 1.doc” to the full path with double backslashes, it worked.
2. If I went to Insert/File… & then selected the Range… button, I typed “bk” (no quotes). Then I selected the Chapter 1.doc file & inserted as a link right over one of your INCLUDETEXT fields. This worked, but had the full path. However, I could edit out the full path & add the ! at the end, update the field & it still worked!Now get this!! You had 2 Includetext fields that referenced the same bookmark in the same file. If you compare what I did in Step 2 (which replaced only one of the two fields) with what you had in the second field, they are the same. All of a sudden both fields worked. I cannot figure out why they would not work before, but at least your not alone (small consolation).
For some reason, Word is having trouble with relative paths and I’m not sure why. I even tested this with other files I created and could find nothing on the knowledge base.
-
-
-
-
Viewing 2 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
inetpub : Microsoft’s patch for CVE-2025–21204 introduces vulnerability
by
Alex5723
1 hour, 53 minutes ago -
Windows 10 finally gets fix
by
Susan Bradley
10 hours, 46 minutes ago -
AMD Ryzen™ Chipset Driver Release Notes 7.04.09.545
by
Alex5723
12 hours, 6 minutes ago -
Win 7 MS Essentials suddenly not showing number of items scanned.
by
Oldtimer
6 hours, 39 minutes ago -
France : A law requiring messaging apps to implement a backdoor ..
by
Alex5723
1 day, 1 hour ago -
Dev runs Windows 11 ARM on an iPad Air M2
by
Alex5723
1 day, 2 hours ago -
MS-DEFCON 3: Cleanup time
by
Susan Bradley
1 hour, 34 minutes ago -
KB5056686 (.NET v8.0.15) Delivered Twice in April 2025
by
lmacri
21 hours, 24 minutes ago -
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
1 day, 13 hours ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
1 day, 17 hours ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
1 day, 17 hours ago -
Unable to eject external hard drives
by
Robertos42
3 hours, 43 minutes ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
14 minutes ago -
Tech I don’t miss, and some I do
by
Will Fastie
4 hours, 48 minutes ago -
Synology limits hard drives
by
Susan Bradley
2 days, 21 hours ago -
Links from Microsoft 365 and from WhatsApp not working
by
rog7
1 day, 23 hours ago -
WhatsApp Security Advisories CVE-2025-30401
by
Alex5723
3 days, 3 hours ago -
Upgrade Sequence
by
doneager
2 days, 20 hours ago -
Chrome extensions with 6 million installs have hidden tracking code
by
Nibbled To Death By Ducks
1 day, 2 hours ago -
Uninstall “New Outlook” before installing 2024 Home & Business?
by
Tex265
1 day, 19 hours ago -
The incredible shrinking desktop icons
by
Thumper
4 days ago -
Windows 11 Insider Preview Build 22635.5240 (23H2) released to BETA
by
joep517
4 days, 2 hours ago -
Connecting hard drive on USB 3.2 freezes File Explorer & Disk Management
by
WSJMGatehouse
1 day, 1 hour ago -
Shellbag Analyser & Cleaner Update
by
Microfix
18 hours, 40 minutes ago -
CISA warns of increased breach risks following Oracle Cloud leak
by
Nibbled To Death By Ducks
4 days, 11 hours ago -
Outlook 2024 two sent from email addresses
by
Kathy Stevens
3 days, 15 hours ago -
Speeding up 11’s search
by
Susan Bradley
1 day, 23 hours ago -
HP Pavilion Will Not Wake Up After Being Idle for Longer Period
by
WSwalterwood44
2 days, 11 hours ago -
Make a Windows 11 Local Account Passwordless
by
Drcard:))
5 days, 1 hour ago -
Ubuntu 25.04 (Plucky Puffin)
by
Alex5723
5 days, 8 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.