The problem I have is that a document im working on requires the 'Page
of Y' bit in the footer.
However this document has sections A - Z (which are broke up wit
section breaks), my problem is that each section (A - Z) may hav
multiple sub-sections.
Now I need to figure out how to do the 'Page X of Y' (specifically th
'Y' bit) for each section and its sub-sections.
e.g.
Section F (2 Pages)
Sub Section F1 (1 Page)
Sub Section F2 (2 Pages)
Total Number of pages: 5
Footer bit
Section F Page 1 of 5
Sub Section F1 Page 3 of 5
Sub Section F2 Page 4 of 5
Thanks in advance
Scorpio54
Suzanne S. Barnhill - 09 Mar 2004 14:17 GMT
If there is a better way to do this, I don't know of it. Place a bookmark on
the last page of each (logical) section. For the Y, use a PageRef to that
bookmark.
--
Suzanne S. Barnhill
Microsoft MVP (Word)

Signature
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
> The problem I have is that a document im working on requires the 'Page X
> of Y' bit in the footer.
[quoted text clipped - 23 lines]
> ------------------------------------------------
> ~~ Message posted from http://www.WordForums.com/
Scoprio540 - 10 Mar 2004 14:04 GMT
Just managed to get it working. Heres what I did:
in the section have a bookmark looking at a number (eg 1) calle
'Section{SectionLetter}PageNo'.
in the section have a bookmark looking at a {SECTIONPAGES} field calle
'Section{SectionLetter}'.
Then in the section/sub sections have a bookmark looking to a comple
'if' statement (which adds {SECTIONPAGES} to the value of the previou
section/subsection{sectionletter}).
In all the footers the 'Page Y' looks to th
'section{sectionletter}pageno' bookmark.
A macro is then ran which loops through all sections and their su
sections. In each sub/section it will look up th
'section{sectionletter}' bookmark. Then when it can find no more su
sections it puts the number into the section{sectionletter}pagen
bookmark.
one refresh of all the documents fields and the page numbers ar
displayed correct.
Post here if you would like a sample template of what i did.
Scorpio54
Scoprio540 - 10 Mar 2004 14:04 GMT
Just managed to get it working. Heres what I did:
in the section have a bookmark looking at a number (eg 1) calle
'Section{SectionLetter}PageNo'.
in the section have a bookmark looking at a {SECTIONPAGES} field calle
'Section{SectionLetter}'.
Then in the section/sub sections have a bookmark looking to a comple
'if' statement (which adds {SECTIONPAGES} to the value of the previou
section/subsection{sectionletter}).
In all the footers the 'Page Y' looks to th
'section{sectionletter}pageno' bookmark.
A macro is then ran which loops through all sections and their su
sections. In each sub/section it will look up th
'section{sectionletter}' bookmark. Then when it can find no more su
sections it puts the number into the section{sectionletter}pagen
bookmark.
one refresh of all the documents fields and the page numbers ar
displayed correct.
Post here if you would like a sample template of what i did.
Scorpio54