Page numbering (XofY)

R

rekoop

Hello,
I have a document with three sections. The first two
sections have continuous page numbering with XofY format
with the Y factor being the total of number of pages in
the first two sections. Currently I am using the
following code: {Page} of {={NumPages}-3} where the 3 is
the total number of pages in the final (3rd) section of
the document.

Can I replace the finite "3" with some code that "reads"
the number of pages in a particular section. My current
code is useless if the final section of the document
varies in the number of pages.

Thanks
 
S

Suzanne S. Barnhill

One way to do this is to use a PAGEREF field referring to a bookmark on the
last page of the section, but this will work only if the numbering is
restarted in that section (so that the page is numbered 3 or whatever), and
keeping a bookmark in any given location (without inadvertently either
moving or deleting it) is no mean trick.
 
J

Jean-Guy Marcil

Bonjour,

Dans son message, < Suzanne S. Barnhill > écrivait :
In this message, < Suzanne S. Barnhill > wrote:

|| One way to do this is to use a PAGEREF field referring to a bookmark on
the
|| last page of the section, but this will work only if the numbering is
|| restarted in that section (so that the page is numbered 3 or whatever),
and
|| keeping a bookmark in any given location (without inadvertently either
|| moving or deleting it) is no mean trick.
||

A little trick here is to bookmark the Section break itself. If you delete
the bookmark, you are bound to notice!

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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