I didn't mean to scare you away with the terms or code. It is actually a
fairly simple way once you apply it.
A field is nothing more than one of the many tools in Word that make it a so
versatile.
The solution I offered you uses four fields and some swithches. Admittingly
complicated as originally provided, but perhaps an explanation would help
clear the fog
Lets take the fields one at a time.
Page Field (Inserts the page number)
Open a blank document and type PAGE. Select PAGE and press ALT+F9. You
have just created a page field. Press ALT+F9 and then F9. You have just
toggled the page field code to display the field result, or the page number.
Insert a page break (Insert>Break>Page). Your page field is now at the top
of page 2. Press F9 to update the field result.
Quote Field (inserts literal text)
Type: QUOTE "Literal Text" select it and press CTRL+F9, ALT+F9 then F9.
There you have it. A quote field just inserts the literal text.
SEQ field. Creates a numbered sequence.
Type: SEQ MySeq, select it, press CTRL+F9, ALT+F9 then F9. Select the "1"
that is displayed and paste it several times in the document. Press F9.
All the SEQ fields updated to thier respective sequence number in the
document.
IF Field. To create an IF,THEN,ELSE expression
Type: IF 1 = 1"True""False" Select the expression and press CTRL+F9,
ALT+F9 then F9. True is displayed. Toggle the field codes (ALT+F9) and
change 1 = 1 to 2 = 1 then press ALT+F9 then F9. False is displayed.
OK now you just have to put these fields to work with a few switches.
Lets now look at the marker field
{ Quote (C) { SEQ Contd \r { PAGE } \h } }
Here we have nested a PAGE field inside a SEQ field (sequenced is named
Contd) inside a QUOTE field(A riddle, wrapped in a mystery, inside an enigma
). As you have seen, QUOTE field returns literal text. In this field
we are using the \h switch in the SEQ field. The \h switch instructs Word
to hide (not display the results of the SEQ field). But what is the
sequence number that isn't displayed? Here is the keys to kingdom
The
\r switch instructs Word to reset the sequence number to the number
following the \r. The sequence number is same number as the { PAGE } page
number that the marker field is located on!
So any page that has a page marker field inserted is coded with a hidden
sequence number which equals that page number.
Now the Footer field:
{ IF { SEQ Contd \c} = { PAGE }"Continued"""}
You should understand by now that IF the SEQ number = Page number THEN
display "Continued" ELSE display "" (or nothing).
The \c switch in the SEQ field instructs the field to display the nearest
preceeding sequence number. You can test this out inserting a string of SEQ
fields and display the results e.g., 1 2 3 4 5
Then put a SEQ field in between the 2 and 3: 1 2 {SEQ Contd \c}
3 4 5
When the fields are updated, the display is: 1 2 2 3 4 5
In Word, the text in the main document is in a layer that "preceeds" all
text in the header and footer (I know it doesn't seem so on the displayed
page, but it does).
So the footer SEQ field is going to diplay the sequence number of the
nearest SEQ Contd field preceeding it. Let's assume that our document is
trying to determine IF "Continued" should be displayed on page 8. IF we
haven't inserted any page markers the { SEQ Contd \c} portion of the IF
field will return 0. So we would have IF 0 = 8"Continued""" and the result
of course is "".
If we have inserted a page marker on page 8 then IF 8 = 8"Continued""" and
the result is of course "Continued"
HTH