View Single Post
  #13   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

It seems your second document (the one with the calculation) has page
numbers that do not start at the first page and has section breaks. For the
field to work as you require it has to add the displayed page numbers rather
than the actual page numbers.

You will have to adjust the calculation for each section to take account of
the difference between the perceived page number and the actual page number
eg as the first section varies in length

Page {=({ Page } + ({ NumPages } - { SectionPages }) +{ IncludeText "D:\\My
Documents\\Test\\Versions\\Even\\Doc 1.doc" LastPage } - 1) }

and in the documents with 2 sections that you wish to carry the page number
from, you need to modify the SET field
{ SET LastPage{ = { Numpages } - { SectionPages } } }

The *actual* page number is that displayed in the status bar at the bottom
of the Word window.

While you can get the correct *displayed* page numbers by this method, your
TOCs will show the *actual* page numbers and I don't see any easy solution
to this - apart from not showing page numbers in the TOC. As an Irishman
might have said when asked directions - If I was going there I wouldn't have
started from here

Maybe this is one occasion when risking the master document function could
be an options (but do keep copies or you could lose the lot)
http://word.mvps.org/FAQs/General/Wh...ocsCorrupt.htm

--

Graham Mayor - Word MVP

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



Irish Cruiser wrote:
UPDATE!!

Okay, not sure how(?) but the filed has decided to work, EXCEPT it
has not added the numbers correctly

Exec Summ is only 1 page. So my next chapter, Senior Mgt needs to
start on Page 2. The formula reckons it is actually Page 4 and then
each page after goes up by 2 instead of 1.

Further complication - I had inserted a TOC at the start of every
chapter, which I do not want included in page numbers. This was
separated originally by a section break, and a page number in footer,
manually starting at the designated number for that chapter.

So.. this is what I am trying to do:
- auto-link page numbers between 14 chapters of various lengths.
- each chapter currently has its own TOC, which can vary in length
from 1 page to 6 pages. I want page numbers to start after TOC and
connect with LastPage of previous chapter
- most chapters contain section breaks between landscape & protrait
pages, where page numbers had been previously connected using
"continue from previous section"

- should I just unplug the pc now..

"Irish Cruiser" wrote:

Hello Graham/Steve

Still here.. took a break to re-charge! I am making painstaking
progress, but still not there yet.

Figured out my keyboard was locked, fixed that problem, so crtl F9
now working fine.

Created 2 test docs and magnaged to connect test 1 & test 2 as
follows: {={PAGE} + {INCLUDETEXT "C:\\Documents and
Settings\\Owner\\Desktop\\Jan 9\\test2.doc" LastPage}}

When I replace "test2.doc" with "Executive_Suammary.doc" I get a NEW
error - !Unexpected End of Formula

Is this any better than Syntax error!

P.S. I am Irish, I work for Cliffs of Moher Cruises on the west
coast, so our boat is little bit smaller than Irish Ferries!



"Graham Mayor" wrote:

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.