Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Irish Cruiser Irish Cruiser is offline
external usenet poster
 
Posts: 7
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Irish Cruiser Irish Cruiser is offline
external usenet poster
 
Posts: 7
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default 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   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

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   Report Post  
Posted to microsoft.public.word.docmanagement
Irish Cruiser Irish Cruiser is offline
external usenet poster
 
Posts: 7
Default 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.


  #7   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default 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.






  #8   Report Post  
Posted to microsoft.public.word.docmanagement
Irish Cruiser Irish Cruiser is offline
external usenet poster
 
Posts: 7
Default 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...




  #9   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

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.



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





  #11   Report Post  
Posted to microsoft.public.word.docmanagement
Irish Cruiser Irish Cruiser is offline
external usenet poster
 
Posts: 7
Default page numbers, multiple docs

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.




  #12   Report Post  
Posted to microsoft.public.word.docmanagement
Irish Cruiser Irish Cruiser is offline
external usenet poster
 
Posts: 7
Default page numbers, multiple docs

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.




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



  #14   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

Irish Cruiser wrote:

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!


The Cliffs are one place that will be on my agenda if I have time this trip


--

Graham Mayor - Word MVP

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



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I start numbering of front matter at page xvii? OklahomaWriter Page Layout 6 December 18th 06 09:43 AM
Over-riding Section Page Numbers with Document Page Numbers in a T Marge Microsoft Word Help 3 November 16th 06 11:57 AM
2 diff. page numbers per page in header/footer? Joyce Yamada Page Layout 5 September 3rd 06 04:21 PM
Multiple Page Numbers on a Single Page Tan83 Microsoft Word Help 3 December 29th 05 04:47 PM
Page Numbers Print { PAGE } in Footer in WORD even after ALT + F9 Brent Microsoft Word Help 3 June 2nd 05 05:35 PM


All times are GMT +1. The time now is 07:23 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"