Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
page numbers, multiple docs
I need to automate my page numbering. I am using separate documents, not a
Master/Sub document format. I came across a field commnad to automate this based on a hidden page field bookmarked as LastPage in the previous document as follows: { = { PAGE } + { INCLUDETEXT "[document]" LastPage \* CharFormat \! } } I have placed this formula in my footer, replacing "document" with the path for the previous doc, starting with C:/etc and ending in .doc I keep getting a syntax error. All suggestions gratfully received... |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
page numbers, multiple docs
The INCLUDETEXT field requires double backslashes in paths. For
example: { INCLUDETEXT "C:\\my folder\\another folder\\my file.doc" } -- Stefan Blom Microsoft Word MVP "Irish Cruiser" wrote in message ... I need to automate my page numbering. I am using separate documents, not a Master/Sub document format. I came across a field commnad to automate this based on a hidden page field bookmarked as LastPage in the previous document as follows: { = { PAGE } + { INCLUDETEXT "[document]" LastPage \* CharFormat \! } } I have placed this formula in my footer, replacing "document" with the path for the previous doc, starting with C:/etc and ending in .doc I keep getting a syntax error. All suggestions gratfully received... |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
page numbers, multiple docs
HI Stefan
Thanks for your help - its been a long night for me (Irish time).. I am still getting syntax error My field now reads as follows: = { PAGE } + { INCLUDETEXT "C:\\Documents and Settings\\Owner\\Desktop\\Jan 9\\1. Executive Summary.doc" LastPage \* MERGEFORMAT What I am doing wrong?? "Stefan Blom" wrote: The INCLUDETEXT field requires double backslashes in paths. For example: { INCLUDETEXT "C:\\my folder\\another folder\\my file.doc" } -- Stefan Blom Microsoft Word MVP "Irish Cruiser" wrote in message ... I need to automate my page numbering. I am using separate documents, not a Master/Sub document format. I came across a field commnad to automate this based on a hidden page field bookmarked as LastPage in the previous document as follows: { = { PAGE } + { INCLUDETEXT "[document]" LastPage \* CharFormat \! } } I have placed this formula in my footer, replacing "document" with the path for the previous doc, starting with C:/etc and ending in .doc I keep getting a syntax error. All suggestions gratfully received... |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
page numbers, multiple docs
"Irish Cruiser" wrote in message
... HI Stefan Thanks for your help - its been a long night for me (Irish time).. I am still getting syntax error My field now reads as follows: = { PAGE } + { INCLUDETEXT "C:\\Documents and Settings\\Owner\\Desktop\\Jan 9\\1. Executive Summary.doc" LastPage \* MERGEFORMAT Verify that the path is correct, that the bookmark name is correct, and that the bookmark actually includes nothing more than a number. -- Stefan Blom Microsoft Word MVP What I am doing wrong?? "Stefan Blom" wrote: The INCLUDETEXT field requires double backslashes in paths. For example: { INCLUDETEXT "C:\\my folder\\another folder\\my file.doc" } -- Stefan Blom Microsoft Word MVP "Irish Cruiser" wrote in message ... I need to automate my page numbering. I am using separate documents, not a Master/Sub document format. I came across a field commnad to automate this based on a hidden page field bookmarked as LastPage in the previous document as follows: { = { PAGE } + { INCLUDETEXT "[document]" LastPage \* CharFormat \! } } I have placed this formula in my footer, replacing "document" with the path for the previous doc, starting with C:/etc and ending in .doc I keep getting a syntax error. All suggestions gratfully received... |
#5
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
page numbers, multiple docs
What does { INCLUDETEXT "C:\\Documents and Settings\\Owner\\Desktop\\Jan
9\\1. Executive Summary.doc" LastPage} produce when inserted? If not a number this will not work. In the Executive Summary.Doc insert the following fields {SET LastPage {Numpages}} Your calculated field will then only contain the last page number of that document so your new calculation should work. The Mergeformat bit isn't required. All field brackets are entered with CTRL+F9 {= { PAGE } + { INCLUDETEXT "C:\\Documents and Settings\\Owner\\Desktop\\Jan 9\\1. Executive Summary.doc" LastPage} -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Stefan Blom wrote: "Irish Cruiser" wrote in message ... HI Stefan Thanks for your help - its been a long night for me (Irish time).. I am still getting syntax error My field now reads as follows: = { PAGE } + { INCLUDETEXT "C:\\Documents and Settings\\Owner\\Desktop\\Jan 9\\1. Executive Summary.doc" LastPage \* MERGEFORMAT Verify that the path is correct, that the bookmark name is correct, and that the bookmark actually includes nothing more than a number. What I am doing wrong?? "Stefan Blom" wrote: The INCLUDETEXT field requires double backslashes in paths. For example: { INCLUDETEXT "C:\\my folder\\another folder\\my file.doc" } -- Stefan Blom Microsoft Word MVP "Irish Cruiser" wrote in message ... I need to automate my page numbering. I am using separate documents, not a Master/Sub document format. I came across a field commnad to automate this based on a hidden page field bookmarked as LastPage in the previous document as follows: { = { PAGE } + { INCLUDETEXT "[document]" LastPage \* CharFormat \! } } I have placed this formula in my footer, replacing "document" with the path for the previous doc, starting with C:/etc and ending in .doc I keep getting a syntax error. All suggestions gratfully received... |
#6
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
page numbers, multiple docs
HI Graham
Welcome to the party.. Sorry to be pedantic, but could you walk me through in baby steps how to insert a field. I am doing something wrong that I cannot see. Insert - Field...-FieldCode tab - opens with = I tried to copy and paste the field code {SET LastPage {Numpages}} after the =, but Syntax error again When do I use the Ctrl F9 function? It does not seem to be responding on my keyboard "Graham Mayor" wrote: What does { INCLUDETEXT "C:\\Documents and Settings\\Owner\\Desktop\\Jan 9\\1. Executive Summary.doc" LastPage} produce when inserted? If not a number this will not work. In the Executive Summary.Doc insert the following fields {SET LastPage {Numpages}} Your calculated field will then only contain the last page number of that document so your new calculation should work. The Mergeformat bit isn't required. All field brackets are entered with CTRL+F9 {= { PAGE } + { INCLUDETEXT "C:\\Documents and Settings\\Owner\\Desktop\\Jan 9\\1. Executive Summary.doc" LastPage} -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Stefan Blom wrote: "Irish Cruiser" wrote in message ... HI Stefan Thanks for your help - its been a long night for me (Irish time).. I am still getting syntax error My field now reads as follows: = { PAGE } + { INCLUDETEXT "C:\\Documents and Settings\\Owner\\Desktop\\Jan 9\\1. Executive Summary.doc" LastPage \* MERGEFORMAT Verify that the path is correct, that the bookmark name is correct, and that the bookmark actually includes nothing more than a number. What I am doing wrong?? "Stefan Blom" wrote: The INCLUDETEXT field requires double backslashes in paths. For example: { INCLUDETEXT "C:\\my folder\\another folder\\my file.doc" } -- Stefan Blom Microsoft Word MVP "Irish Cruiser" wrote in message ... I need to automate my page numbering. I am using separate documents, not a Master/Sub document format. I came across a field commnad to automate this based on a hidden page field bookmarked as LastPage in the previous document as follows: { = { PAGE } + { INCLUDETEXT "[document]" LastPage \* CharFormat \! } } I have placed this formula in my footer, replacing "document" with the path for the previous doc, starting with C:/etc and ending in .doc I keep getting a syntax error. All suggestions gratfully received... |
#7
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
page numbers, multiple docs
Hi Steve, all verfieid, still getting
!Syntax Error, { Sorry, not familiar with fields Verify that the path is correct, that the bookmark name is correct, and that the bookmark actually includes nothing more than a number. |
#8
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
page numbers, multiple docs
Create a test document and see what, if anything, the INCLUDETEXT
field displays here. Then try adding the other components of the nested field and see where things go wrong. When you've got everything working, you can copy the field into the document where it actually "belongs." Alternatively, see if Graham's solution works better. -- Stefan Blom Microsoft Word MVP "Irish Cruiser" wrote in message news Hi Steve, all verfieid, still getting !Syntax Error, { Sorry, not familiar with fields Verify that the path is correct, that the bookmark name is correct, and that the bookmark actually includes nothing more than a number. |
#9
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
page numbers, multiple docs
This error means that you have entered the field boundaries {} from the
keyboard and not by using CTRL+F9 -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org Irish Cruiser wrote: Hi Steve, all verfieid, still getting !Syntax Error, { Sorry, not familiar with fields Verify that the path is correct, that the bookmark name is correct, and that the bookmark actually includes nothing more than a number. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I start numbering of front matter at page xvii? | Page Layout | |||
Over-riding Section Page Numbers with Document Page Numbers in a T | Microsoft Word Help | |||
2 diff. page numbers per page in header/footer? | Page Layout | |||
Multiple Page Numbers on a Single Page | Microsoft Word Help | |||
Page Numbers Print { PAGE } in Footer in WORD even after ALT + F9 | Microsoft Word Help |