Modifying Y value in Page X of Y

K

Kerri N.

In Word I like to use the autotext "Page X of Y" feature. My problem is I
don't want the cover page or TOC to count in the Y number. To remedy this,
I've always been manually typing in the Y value. Which pretty much defeats
the whole benefit of the autotext feature and, when you use section breaks,
is subject to a lot of human error.

I tried setting the cover page to be page # -1 so that the TOC would be page
# 0 and the first content page would be page # 1, but Word says the page #
can't be negative.

Is there a way to make the "Page X of Y" autotext feature not count the
first few pages of a document?

If not, can anyone think of a way to accomplish the same thing using a macro
some how? I don't insist on using "Page X of Y", I just want my page count to
omit the first 2 pages.
 
K

Kerri N.

Unfortunately, I have 5 sections in my document (the title page is in section
1, the TOC is in section 2, and various topics are in sections 3-5) and when
I use your suggestion the numbering only counts the pages in that section. I
need it to count across sections, so it includes the page count of sections
3-5 inclusive, but not include sections 1 and 2.
 
D

Doug Robbins - Word MVP

{ = { NUMPAGES } - 2 }

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
T

Tony Jollans

This takes a bit of messing around.

Make sure you have different headers and/or footers for sections 1, 2 and 3
at least

In the header (or footer) for section 1 add:

{ set sec1pages { sectionpages } }


In the header (or footer) for section 2 add:

{ set sec2pages { sectionpages } }

Where you want the page count in sections 3 (and later), use

Page { page } of { = { numpages } - { sec1pages } - { sec2pages } }

(all braces entered via Ctrl+F9)

Format the page number in section 3 to start at 1.

Note that the calculated page count will not update automatically.
 

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