Reply
 
Thread Tools Display Modes
  #1   Report Post  
RickR RickR is offline
Junior Member
 
Posts: 0
Default 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.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom[_3_] Stefan Blom[_3_] is offline
external usenet poster
 
Posts: 6,897
Default Customized page numbers in footer (harvested from text)

You should be able to use STYLEREF fields for this. Create two unique
character styles and apply one of them to the "88" and the other one to "89"
(and similarly, using the same pair of styles, for other pages in the
document). In the footer, add { STYLEREF "Name of first char style" }–{
STYLEREF "Name of second style" }.

You can insert the field codes via Insert tab | Quick Parts | Field.
Alternatively, you can insert them manually: Press Ctrl+F9 to insert each
pair of field delimiters, { }, and then type in the code as shown above.

-- 
Stefan Blom
Microsoft Word MVP




---------------------------------------------
"RickR" wrote in message ...


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.




--
RickR


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page numbers as Written Numbers NOT numerals in header/footer cristyh Microsoft Word Help 2 July 2nd 09 10:28 PM
Total Page Numbers in Footer Chris New Users 2 June 8th 09 10:24 AM
2 diff. page numbers per page in header/footer? Joyce Yamada Page Layout 5 September 3rd 06 04:21 PM
page numbers in footer sudheer Microsoft Word Help 3 October 20th 05 03:07 PM
Page Numbers Print { PAGE } in Footer in WORD even after ALT + F9 Brent Microsoft Word Help 3 June 2nd 05 05:35 PM


All times are GMT +1. The time now is 09:16 PM.

Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"