Dual Page Numbering

R

Ramsay

Hi,

I have a template which has X of Y page numbering in the header of every
page. At certain points throughout the document, users will insert a section
break to begin a new section. These documents can contain any number of
sections - there is no way for me to know in advance.

Is there a way to have X of Y page numbering in every header, as well as M
of N page numbering in the headers for each section?

I've read through this: http://gregmaxey.mvps.org/Page_Numbering.htm
However I'm looking for something with VBA code (ideally I'd like the users
to select a custom button on the ribbon which will insert the new
section/custom header and adjust all the page numbers accordingly). I'm
assuming the easiest way is to insert a bookmark at the end of the previous
section and have "Page { PAGEREF } of { NUMPAGES }" to count the total pages
of the document, and then "Page { PAGE } of { SECTIONPAGES }" for counting
the pages of each section?

Understanding the concept behind it, I just need some guidance with the VBA
code.
 
D

Doug Robbins - Word MVP

Why don't you just set up your template with both required sets of numbering
and if you want to suppress it in the original - first section of the
document, enclose it inside an If...then...Else field construction

{ IF { SECTION } > 1 "{ PAGE } of { SECTIONPAGES }" "" }

--
Hope this helps,

Doug Robbins - Word MVP

Please reply only to the newsgroups unless you wish to obtain my services on
a paid professional basis.
 
R

Ramsay

Thanks for the reply Doug.

Correct me if I'm wrong, but your solution would mean every section after
the first would have both sets of page numbering.

In my case, there is no way of knowing which sections of the document will
have the second set of "M of N" page numbering. (eg., only sections 3, 6 & 7
would have both sets of numbering...the others would have only X of Y).
 

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