How SECTIONPAGES is Evaluated within a Header and Footer

D

dclayton

HOW SECTIONPAGES IS EVALUATED WITHIN A HEADER AND FOOTE

When Word evaluates fields within a Header and Footer, the propertie
of the page's first section are used. This can cause problems. Fo
example, consider the following Legal Agreement:
LEGAL AGREEMENT TITLE
[------- Continuous Break -------]

Column 1 Line 1 Column 2 Line 1
Column 1 Line 2 Column 2 Line 2
Column 1 Line 3 Column 2 Line 3
...etc

[Footer: Page {PAGE} of {SECTIONPAGES}]

When SECTIONPAGES is evaluated within the footer, the properties of th
first section, "LEGAL AGREEMENT TITLE", are used. Since the "LEGA
AGREEMENT TITLE" section spans less than one page, SECTIONPAGES withi
the footer would be evaluated as "1".

If this document spanned 5 pages, the unfortunate consequence would b
that the pages would be numbered: "Page 1 of 1", "Page 2 of 5", "Page
of 5", "Page 4 of 5", and "Page 5 of 5".

Does anyone have any suggestions as how to get around this proble
within Word? The example I'm using above is a 5-page section tha
appears within a larger document.

Dejay Clayto
 
D

Doug Robbins - Word MVP - DELETE UPPERCASE CHARACT

Insert a bookmark on the last page of the section and use a cross reference
to the page number of the bookmark.

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
dclayton said:
HOW SECTIONPAGES IS EVALUATED WITHIN A HEADER AND FOOTER

When Word evaluates fields within a Header and Footer, the properties
of the page's first section are used. This can cause problems. For
example, consider the following Legal Agreement:
LEGAL AGREEMENT TITLE
[------- Continuous Break -------]

Column 1 Line 1 Column 2 Line 1
Column 1 Line 2 Column 2 Line 2
Column 1 Line 3 Column 2 Line 3
...etc

[Footer: Page {PAGE} of {SECTIONPAGES}]

When SECTIONPAGES is evaluated within the footer, the properties of the
first section, "LEGAL AGREEMENT TITLE", are used. Since the "LEGAL
AGREEMENT TITLE" section spans less than one page, SECTIONPAGES within
the footer would be evaluated as "1".

If this document spanned 5 pages, the unfortunate consequence would be
that the pages would be numbered: "Page 1 of 1", "Page 2 of 5", "Page 3
of 5", "Page 4 of 5", and "Page 5 of 5".

Does anyone have any suggestions as how to get around this problem
within Word? The example I'm using above is a 5-page section that
appears within a larger document.

Dejay Clayton
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top