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.
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.