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


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






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



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 06:51 AM.

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"