Prev: Stop Word from counting first three pages as part of the document
Next: Margins of section x are outside the printable area of the page
From: Gaynor on 13 Jan 2010 17:03 I have a 600 page document that has over 100 sections. I need to number each section in the header with the section page no. and total number of pages in that section ie. Page 1 of 5 or Page 3 of 6. I then need to have the page number for the whole document in the footer. I can insert the number of pages in each section but haven't worked out how to insert the which page number it is in that section, it always inserts the same number that is in the footer. Submitted via EggHeadCafe - Software Developer Portal of Choice JavaScript Autosize TextArea - .charCodeAt http://www.eggheadcafe.com/tutorials/aspnet/846b51ba-0475-4d52-b3ec-77ed3ae3e9f3/javascript-autosize-texta.aspx
From: macropod on 13 Jan 2010 22:28
Hi Gaynor, The following field code, placed in the header, creates X of Y page numbers for individual Sections. {QUOTE{IF{PAGE}= 1 {SET Section0 0}} {IF{PAGE}<>{NUMPAGES} {IF{={SECTIONPAGES}+{REF {QUOTE Section{={SECTION}-1}}}}={PAGE} {SET {QUOTE Section{SECTION}} {PAGE}}}} "Page {={PAGE}-{REF {QUOTE Section{={SECTION}-1}}}} of {SECTIONPAGES}"} If the Section headers are linked (ie 'same as previous'), you'll only have to put the field code in the first Section. Note: The field brace pairs (ie '{ }') for the above example are created via Ctrl-F9 - you can't simply type them or copy & paste them from this message. -- Cheers macropod [Microsoft MVP - Word] "Gaynor Wall" wrote in message news:201011317348gaynor.wall(a)esr.cri.nz... >I have a 600 page document that has over 100 sections. I need to number each section in the header with the section page no. and >total number of pages in that section ie. Page 1 of 5 or Page 3 of 6. I then need to have the page number for the whole >document in the footer. I can insert the number of pages in each section but haven't worked out how to insert the which page >number it is in that section, it always inserts the same number that is in the footer. > > > Submitted via EggHeadCafe - Software Developer Portal of Choice > JavaScript Autosize TextArea - .charCodeAt > http://www.eggheadcafe.com/tutorials/aspnet/846b51ba-0475-4d52-b3ec-77ed3ae3e9f3/javascript-autosize-texta.aspx |