Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Word

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 01-06-2011, 02:30 PM
bobmard bobmard is offline Mac OS X Microsoft Office 2008 for Mac
Novice
 
Join Date: Jan 2011
Posts: 2
bobmard is on a distinguished road
Default Sequential Page Numbering of Multiple Word Docs

How do I create a single sequentially numbered Word document from multiple Word docs that each have their own auto text file and page formatting in the headers/footers?
Reply With Quote
  #2  
Old 01-06-2011, 02:50 PM
macropod macropod is online now Windows 7 32bit Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 9,867
macropod is a jewel in the roughmacropod is a jewel in the roughmacropod is a jewel in the roughmacropod is a jewel in the rough
Default

Hi Bobmard,

You can use INCLUDETEXT fields for this. If you want to include the page Header & Footer info from the source documents, they'll need a Section break at the end. And, if you want to preserve the source documents' page numbering, be sure to add the '\!' switch to the INCLUDETEXT fields. See Word's Help file for details.
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
  #3  
Old 01-07-2011, 12:05 PM
bobmard bobmard is offline Mac OS X Microsoft Office 2008 for Mac
Novice
 
Join Date: Jan 2011
Posts: 2
bobmard is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
Hi Bobmard,

You can use INCLUDETEXT fields for this. If you want to include the page Header & Footer info from the source documents, they'll need a Section break at the end. And, if you want to preserve the source documents' page numbering, be sure to add the '\!' switch to the INCLUDETEXT fields. See Word's Help file for details.
My 2008 MacWord does not have Word Help file for INCLUDETEXT. I have found the control F9 feature but I don't know where to go from there.
Reply With Quote
  #4  
Old 01-07-2011, 12:27 PM
macropod macropod is online now Windows 7 32bit Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 9,867
macropod is a jewel in the roughmacropod is a jewel in the roughmacropod is a jewel in the roughmacropod is a jewel in the rough
Default

Hi Bobmard,
Quote:
My 2008 MacWord does not have Word Help file for INCLUDETEXT
That's a drag.

OK, you should be able to do the insertion via Insert|Quick Parts|Field. Or you can create one via Ctrl-F9. Using Ctrl-F9 to create the field braces (ie '{}'), you'd simply fill in between the field braces so that you end up with:
{INCLUDETEXT "Drive:\\Filepath\\Filename.Extension"}
or:
{INCLUDETEXT "Drive:\\Filepath\\Filename.Extension" \!} (per my advice above)
Note that, whichever method you use, the path separators must have double backslashes. And, if you want to refer to just a part of another document, you bookmark that range and use:
{INCLUDETEXT "Drive:\\Filepath\\Filename.Extension" "bookmark name"}
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
  #5  
Old 08-23-2011, 07:45 AM
HopeHare HopeHare is offline Windows XP Office 2003
Novice
 
Join Date: Aug 2011
Posts: 4
HopeHare is on a distinguished road
Default

The exact instructions for sequential numbering of multiple Word documents is here http://homepage.swissonline.ch/cindy...r/MiscFram.htm.
So, I placed the following in the footer of the last page of Chapter 2:
{ = {PAGE} + {INCLUDETEXT "N:\\`BPH Staff Folders\\HHare\\Numbering\\ Chap1.doc" Chap1Page \ Charformat \! }}
but unfortunately, it resolves to
"!Unexpected End of Formula".
What am I doing wrong?
Hope
Reply With Quote
  #6  
Old 08-23-2011, 08:39 AM
HopeHare HopeHare is offline Windows XP Office 2003
Novice
 
Join Date: Aug 2011
Posts: 4
HopeHare is on a distinguished road
Default Sequential page numbering across multiple documents

Continuing with the problem.
  • As long as documents are in same folder, relative paths working (so far). Saves a lot of space.
  • Testing with other bookmarks shows that INCLUDETEXT works fine across documents.
  • The PAGE field works by itself: The bookmark "Test {PAGE} " in Chapter 1 is referred to in Chapter 2 as {INCLUDETEXT "Chap1.doc" Test} and correctly displays as "Test 1" .
  • What DOESN'T work is the formula {= {PAGE} + {INCLUDETEXT "Chap1.doc" Test}
Which is of course the whole point of the deal. Sequential page numbering. But at least now I know that it is the formula for creating a page number by adding a previous page number to the current page number that is the problem. Some tricky business with field formulas. Any help would be very welcome!
Hope
Reply With Quote
  #7  
Old 08-24-2011, 12:18 AM
macropod macropod is online now Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 9,867
macropod is a jewel in the roughmacropod is a jewel in the roughmacropod is a jewel in the roughmacropod is a jewel in the rough
Default

Hi HopeHare,

If you're trying to import the page number count from the 'Chap1' document, you need to create a bookmark in that document containing a NUMPAGES field. For example, you could put a field coded as follows in the document header or footer:
{SET PageCount {NUMPAGES}}
You most definitely do not want a field that includes text in the output (eg your 'Test 1').

Then, in the target document, use a field coded as:
{={PAGE}+{INCLUDETEXT "N:\\BPH Staff Folders\\HHare\\Numbering\\Chap1.doc" PageCount}}
or, if you want proper support for relative paths to files in the same folder:
{={PAGE}+{INCLUDETEXT "{FILENAME \p}/../Chap1.doc" PageCount}}

Notes:
1. The field brace pairs (ie '{ }') for the above sare created via Ctrl-F9 - you can't simply type them or copy & paste them from this message;
2. You don't need any spaces between the forumla operators;
3. the \! switch is only useful if you want to prevent the source document updating its last-updated page count;
4. the Charformat switch doesn't do anything useful in this context; and
5. If you're combining the page counts from multiple documents, each source document can use the same bookmark name. This makes things a bit simpler, so that you can use a compound field coded along the lines of:
{={PAGE}+{INCLUDETEXT "{FILENAME \p}/../Chap1.doc" PageCount}+{INCLUDETEXT "{FILENAME \p}/../Chap2.doc" PageCount}}
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
  #8  
Old 08-24-2011, 06:21 AM
HopeHare HopeHare is offline Windows XP Office 2003
Novice
 
Join Date: Aug 2011
Posts: 4
HopeHare is on a distinguished road
Default

Thank you very much, Macropod! I appreciate your very clear and helpful response. I shall now test the procedure on one of our gigantic 13 chapter reports.
Hope
Reply With Quote
  #9  
Old 08-24-2011, 08:51 AM
HopeHare HopeHare is offline Windows XP Office 2003
Novice
 
Join Date: Aug 2011
Posts: 4
HopeHare is on a distinguished road
Default Sequential page numbering across multiple documents--TOC

Worked like a champ! Except, now I have another problem. I have used the following method to create a TOC for multiple documents:
1. In the TOC document , go to Insert => Reference =>Index and Tables. Select Table of Contents, click to insert.
Result: Error message: “No table of contents entries found”. This is correct. Now we supply the entries.
2. Insert field brackets, and type RD “document name.doc” between the brackets--e.g, { RD “Chapter 1.doc” } Repeat for each document. Note that document name is within quotes.
4. Right click in TOC area, select ‘update’. TOC displays.


However, the TOC displays the real page numbers, not the adjusted numbers created by the code. Any suggestions on how to fix this?
Many thanks for your help,
Hope
Reply With Quote
Reply
Please reply to this thread with any new information or opinions.

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing multiple docs frankdh Word 2 11-02-2010 10:59 AM
Subtotaling Sequential 0's ktpalmer Excel 2 06-23-2010 06:54 AM
Please help with Numbering a document with multiple letters. DJReality213 Office 1 01-15-2010 04:56 PM
Amend footer in multiple word docs? compact Word 2 02-24-2009 08:40 AM
page numbering across multiple documents reitdesign Word 3 12-12-2008 10:55 AM


All times are GMT -7. The time now is 04:55 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft