Customized page numbers in footer (harvested from text)
I need to add custom page numbers to the footer of each page of a Word 2010 document. The custom page number will be harvested from one or more occurrences of the snippets "[Page xx]" appearing within the text on the page: For example, say "[Page 88]" and "[Page 89]" are found within the text appearing on a given page (separated by a few lines of text). From these, I will then place "88-89" in the footer for that page. (The customized numbers therefore have nothing to do with the actual page numbers of the document.) The fields should populate when the document is opened. I understand rudimentary VBS macro programming, how to insert fields, etc. Thank you very much.
|