numpages - 1

X

xg

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?
 
P

Peter Jamieson

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top