Results 1 to 6 of 6
  1. #1
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: page X of Y - last page is 29 of 32? (2003 - S

    Annie, Welcome the the Lounge.

    What you describe is the most reliable "trick." Actually, I can't understand why people with earlier versions of Word don't need this trick as well. As far as I know, Word hasn't changed much in this area, except that many unpatched versions of word will print Page 1 of 1, Page 2 of 2, and so forth....

    (If you wanted to generalize it so that the "3" was not hardcoded, there might be a way to do that, but you already have discovered the main limitation: there are only two codes to work with, NUMPAGES and SECTIONPAGES.)

    I'm not sure we have had many threads on creative page numbering for documents with more than two sections, but if you like field code stuff in general, should not miss these Star posts:
    <UL><LI><IMG SRC=http://www.wopr.com/w3timages/starpost.gif> Word Field Maths (1.02)
    <LI><IMG SRC=http://www.wopr.com/w3timages/starpost.gif> Date Calculations in Word (2.41)[/list]

  2. #2
    New Lounger
    Join Date
    Aug 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    page X of Y - last page is 29 of 32? (2003 - SP1)

    I'm having page X of Y issues - my documents have multiple sections (title page, table of contents, body text, appendicies - you get the picture).

    What's going on is that the entire document is 32 pages long, but only 29 are counted (counting started on the 4th physical page). Using {SECTIONPAGES} works on a document that has the body in one section, but doesn't help on the ones that have section breaks in the body. I can do a quickie fix by {={NUMPAGES}-3} and get my results, but I want to figure out how to actually do this right (for future documents). I have two documents that I'm working on right now that are having this issue.

    Several of us have worked on this document & I'm the only one who has 2003 installed, so I'm wondering if this is a corruption issue. Setting the page# to start at is working OK for the Page X part, just the Y is acting goofy.

    Any suggestions that are probably about to bite me?

    Thanks!

  3. #3
    Silver Lounger
    Join Date
    Jan 2001
    Location
    West Long Branch, New Jersey, USA
    Posts
    1,921
    Thanks
    6
    Thanked 9 Times in 7 Posts

    Re: page X of Y - last page is 29 of 32? (2003 - SP1)

    Annie,

    Word seems to have caught the "numpages virus" <img src=/S/grin.gif border=0 alt=grin width=15 height=15> along time ago and has never completely shaken it. Whatever vaccines are developed, it seems to find a way to come back in some other form.

    Another trick you might try is the following 2-step approach:
    1. on the last page of the document and at the very end of the text, put a bookmark. A few things to consider:
    --- I called my bookmark "lastpage" (w/o quotes but the name is not important as long as its unique). Now to make sure you know the bookmark is there, I put something like "the end" and bookmark that text (instead of just bookmarking a location after my last character). I format this as hidden text. If you're just printing, this is fine; if you're distributing this electronically, people will still see this. If you already have something that will be at the end (like a signature), you can bookmark that. If adding something like "the end", you just have to make sure this is not on a new page by itself.

    2. in your header/footer, after the "of ", use a cross-reference to the page number of the "lastpage" bookmark.
    --- Depending on your version of word, cross-references are under the Insert menu or some sub-menu from that (e.g., in 2003, it's Insert | Reference | Cross Reference). Once you get to the cross-reference dialog (which is pretty much the same across many versions), there are 2 drop-down boxes: choose Bookmark in the left one and Page Number in the right one. Then choose your bookmark.

    The above was also considered a work-around to the numpages virus. Now having said that, I had a post a few months ago where even this did not work and we couldn't figure out why.

    HTH

    Fred

  4. #4
    New Lounger
    Join Date
    Aug 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: page X of Y - last page is 29 of 32? (2003 - SP1)

    j & Fred -

    Thanks a bunch - I'll give these a shot. The fact that it's not something simple that I overlooked is both relieving and frustrating at the same time!

    Annie

  5. #5
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,054
    Thanks
    2
    Thanked 417 Times in 346 Posts

    Re: page X of Y - last page is 29 of 32? (2003 - S

    Hi Jefferson,

    One way of using SECTIONPAGES with NUMPAGES to produce the correct result would be to put a bookmarked SECTIONPAGES field in the un-numbered section. For example:
    . If Section 1 isn't to be numbered, insert a field into the footer as {SET NoNumber {SECTIONPAGES}};
    . Update the result via F9 and you'll now have an invisible SECTIONPAGES field with a 'NoNumber' bookmark - all you might see there is the bookmark bar;
    . In the Sections that are to be numbered, insert a formula field into the footer as {={NUMPAGES}-NoNumber}; and
    . Update the result via F9 and you'll have a result that dynamically updates the 'y' part of a 'page x of y' footer.

    Cheers
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  6. #6
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: page X of Y - last page is 29 of 32? (2003 - S

    Your creativity with fields never ceases to amaze me. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •