View Single Post
  #10   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default page numbers, multiple docs

You cannot copy and paste fields.

In the Executive Summary.doc document Place your cursor anywhere in that
document - start or end would be best and press CTRL+F9 (together)
You should see two bold brackets {}
between them type SET LastPage
immediately after press CTRL+F9 again for the second pair of brackets.
Between them type NumPages
You should now have

{SET LastPage {Numpages}}

Press F9 (to update that field and then if necessary ALT+F9 to toggle the
display - that field will 'disappear'.
Save the document.
In your other document - presumably in the footer -
Enter in the same way directly in the document - this time with three sets
of brackets provided by CTRL+F9
{= { PAGE } + { INCLUDETEXT "C:\\Documents and Settings\\Owner\\Desktop\\Jan
9\\1. Executive Summary.doc" LastPage}
F9 then ALT+F9 to display the calculated result.

I'm curious about your psuedonym, for as coincidence would have it I have
just booked my passage on Irish Ferries for an Easter visit to Dublin - if
British Airways don't screw up the connecting flight

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



Irish Cruiser wrote:
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...