Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Edit Total Page Numbers in Word 1

Status
Not open for further replies.

HRingman

Technical User
Jul 15, 2010
8
US
Hello,

I am updating a document someone else created at work in Microsoft Word 2007. There are 24 pages in the document, and the first page is the cover page and has a page number 0. On the pages after that, each footer has "Page 1 of 24" and so on. Because there was a page 0, then the very last page of the document says "Page 23 of 24." I want to know if there is a way to put "Page 1 of 23". I realize I could just type in "23", but I'd rather it be a code that updated automatically.

I know how to insert the total number of pages, and I know how to insert the number of pages in a specific section. But is there any way to insert the "total number of pages -1"? Or, there are 3 sections in the document, is there a way to add up the number of pages from different sections? I tried editing the field code for NumPages, but I don't quite understand the field codes and it just kept coming up with errors.

Thanks for your help,
Heather
 
Assuming (and I hope it is case) that you have a Section break between page 1 (or your 0) and the page 1 (2 of the document), then:

1. start the page numbering at 1 for th enew section

2. put the following into the footer

{PAGE} of {=SUM(NUMPAGES},-1}

Use Ctl-F9 to insert the field brackets. It does not work any other way. The result will be:

1 of 23
2 of 23
....
23 of 23

Gerry
 
Thank you, that really helped. I couldn't actually get it to work the way you wrote it, but messing around a bit, I got {Page} of {=sum({numpages},-1)} which finally worked.

Thanks again,
Heather
 
Ooops, yes you are of course correct. I missed the opening { of NUMPAGES and the closing ) of SUM.

I just typed it directly (ah, too quickly! and did not look closely...ahem) into my response.

Glad you worked it out. Thanks for the star.

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top