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...