I break my document into 2 sections. section 1 for cover page and section 2
for main document. When I insert Page x of y in my main document, the
numpages code include cover page as total. how do I subtract numpages by 1
in code?
Use Alt-F9 to display the field codes. You should see { NUMPAGES }
Select the field and press F9 to add an extra pair of "field braces", so you
see
{ { NUMPAGES } }
modify this so it looks like
{ ={ NUMPAGES }-1 }
(However, if you are merging you may need to use { SECTIONPAGES } rather
than { NUMPAGES } and do things slightly differently. )
Peter Jamieson
>I break my document into 2 sections. section 1 for cover page and section 2
>for main document. When I insert Page x of y in my main document, the
>numpages code include cover page as total. how do I subtract numpages by 1
>in code?