Section Breaks and Page Numbering
Stefan,
When I used your code and pressed ALT+F9, the code remained.
If there's a way I can send you my document so that you can see how it's set
up, I'm sure that would help. Is that possible? The entire document is only
about 20 pages.
--
MargaretA
"Stefan Blom" wrote:
I think this should do what you want (assuming that I understood your
requirements correctly):
In the footer of section 7: { SET pagecount1 { SECTIONPAGES } }Page { PAGE }
of { = { REF pagecount1 } + { REF pagecount2 } }
In the footer of section 12: { SET pagecount2 { SECTIONPAGES } }Page {
PAGE } of { = { REF pagecount1 } + { REF pagecount2 } }
(Note that each SET field has a nested SECTIONPAGES field, and the formula
fields have nested REF fields.)
Be sure to set the starting page number for section 12 to the appropriate
value.
--
Stefan Blom
Microsoft Word MVP
"MargaretA" wrote in message
...
Stefan,
I really appreciate your helpfulness! And I hate to admit it, but I'm
still
having trouble.
To get the page number in the footer of the section where numbering begins
at "1" (which is actually Section 7 of the document), I entered:
Page { SET pagecount1 { SECTIONPAGES } } of { = { REF pagecount7 } }
I selected all and pressed Alt+F9. I got additional code, instead of Page
X
of Y.
Would you be so kind as to write the exact code for my document's Section
7,
where page numbering should begin at Page 1, and for Section 12, the last
section in the document? (There are 3 sections between Sections 7 and 12
that are single blank pages that should not be in the page count.)
I realize that I'm probably pushing the limit on my requests for help on
this topic, so I'm especially grateful for your attention. This problem
has
made me a desperate woman!
--
MargaretA
"Stefan Blom" wrote:
In each Word section whose page count you want, insert a field such as
this
one:
{ SET pagecount1 { SECTIONPAGES } }
(Use pagecount2 in the second section, and so on.)
To insert each pair of field delimiters, { }, press Ctrl+F9. Press F9 to
update. Use Alt+F9 to show/hide field codes.
For the total page count, use the following field:
{ = { REF pagecount1 } + { REF pagecount2 } + { REF pagecount2 } }
(Of course, this is just an example with three sections.)
--
Stefan Blom
Microsoft Word MVP
"MargaretA" wrote in message
...
Stefan,
I want the "Y" number to include all pages in the document with page
numbers. I don't want to include the blank pages or the few pages at
the
very beginning of the document.
--
MargaretA
"Stefan Blom" wrote:
In page X of Y, what should be counted by the "Y" part? The number of
pages
in a particular section? Or the total number of pages in certain
sections?
Generally, to count the number of pages in a specific section, you can
make
use of the SECTIONPAGES field (insert it in that section). So if you
just
want to count the pages in one particular section, simply insert the
SECTIONPAGES field in that section.
--
Stefan Blom
Microsoft Word MVP
"MargaretA" wrote in message
...
I have a document with several even page breaks.
I begin numbering several pages into the document, then restart
numbering
after each blank even page break. At the end of the document I have
Page
19
of 33. It should be Page 19 of 19.
Please tell me how to solve this dilemma! Thanks very much!
MargaretA
|