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
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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, 8 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
-
Office gets current release
by
Susan Bradley
4 hours ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
9 hours, 22 minutes ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
6 hours, 7 minutes ago -
Stop the OneDrive defaults
by
CWBillow
10 hours, 11 minutes ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
20 hours, 7 minutes ago -
X Suspends Encrypted DMs
by
Alex5723
22 hours, 19 minutes ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
22 hours, 37 minutes ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
23 hours, 14 minutes ago -
OpenAI model sabotages shutdown code
by
Cybertooth
23 hours, 51 minutes ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
12 hours, 1 minute ago -
Enabling Secureboot
by
ITguy
19 hours, 1 minute ago -
Windows hosting exposes additional bugs
by
Susan Bradley
1 day, 7 hours ago -
No more rounded corners??
by
CWBillow
1 day, 3 hours ago -
Android 15 and IPV6
by
Win7and10
17 hours, 19 minutes ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
1 day, 20 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
1 day, 22 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
1 day, 17 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
2 days, 6 hours ago -
May preview updates
by
Susan Bradley
1 day, 17 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
1 day, 9 hours ago -
Just got this pop-up page while browsing
by
Alex5723
1 day, 22 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
1 day, 19 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
21 hours, 34 minutes ago -
At last – installation of 24H2
by
Botswana12
2 days, 21 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
18 hours, 21 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
3 days, 9 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
1 day, 8 hours ago -
Limited account permission error related to Windows Update
by
gtd12345
3 days, 23 hours ago -
Another test post
by
gtd12345
3 days, 23 hours ago -
Connect to someone else computer
by
wadeer
43 minutes 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.