# Thread: Table Page Numbering (2K SR-1)

1. ## Table Page Numbering (2K SR-1)

I have a table that spans multiple pages in Word. I would like to identify each page of the table as 'Page x of y', with the 'y' being the number of pages that the table takes up. I would like to have this information in the table header, but not been able to figure out how to do this. Any suggestions?

Beth

2. ## Re: Table Page Numbering (2K SR-1)

For the X part, there have been many threads on how to use calculation with field codes (usually with dates). These formulas can run for many lines, and as I have never really parsed through them to understand them, or whether that approach is relevant to calculating with page numbers. I will leave it to the experts to suggest how to do it.

For the Y part, the simplest method would be to start and end the table in its own section, and use the SECTIONPAGES field code to show the total number of pages taken up by the table (by virtue of the length of the section). Well, actually, I guess the simplest method would be to hardcode the number of pages. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

3. ## Re: Table Page Numbering (2K SR-1)

Jefferson,

Putting the table in its own section and calculating section page count vs. page vs. numpages sounds like a good solution and I set out to concoct a nested field.

Unfortunately what brought me up short was finding out that fields placed in table heading rows do not increment - for instance, a {PAGE} field will show the same number on every page, if it is placed in a table heading row. <img src=/S/crazy.gif border=0 alt=crazy width=15 height=15>

Gary

4. ## Re: Table Page Numbering (2K SR-1)

That's strange, but it sounds vaguely familiar. [Processing...] There is a confirming KB article

5. ## Re: Table Page Numbering (2K SR-1)

Here's a demo document that more or less uses the method described in the KB article you've pointed to.

For the purposes of this demo, I've got a document with three sections - the first section contains two pages of regular text, the second section contains the table and is three pages long, followed by a final section.

The field codes that produce the "Table page 1 of 3" message would need to be tailored a bit depending on the requirements of the specific document. In this case, it's something like:

"Table page [Current page number minus number of pages in first section] of [Number of pages in this section]"

The "number of pages in first section" part is gotten by putting a SectionPages field in the first section header, surrounding it with a bookmark (and making the font color for this white so it doesn't show up when the document is printed).
Then the field in the table header gets the result of the SectionPages field by use of a Ref field which refers to the bookmark.

Gary

6. ## Re: Table Page Numbering (2K SR-1)

Hi Everyone:

I'm a little late on the thread, with the hard work done. <img src=/S/smile.gif border=0 alt=smile width=15 height=15> I suppose you could do away with the formula by using the "Format page number" option on the header/footer toolbar & change it to restart with each section. That would make sure that the Table Page always started with one.

However, it would then mean that you would need a formula to get the "real" page numbers, assuming you wanted those pages numbered.

You would still need a { sectionpages } field in each section header & would need to be bookmarked. Then your page number would be

{={ref bk1}+{ref bk2}+...{bkn} + {page}}

where bkn refers to the bookmark of section n. This might end up more complicated. Hmmm, there ought to be a better way.

7. ## Re: Table Page Numbering (2K SR-1)

Thanks for the response and the suggestions. I'll have to fool around a bit with this. To explain a little more, I work for a company who does contract work with NASA, and the governement documentation requirements are a bit 'unique.' In addition to wanting the page identification in the table, I also have required header and footer information that needs to be maintained (footer information includes the document page number). I guess what I'm asking for is better done with a desktop publishing package.

Thanks again.

Beth

8. ## Re: Table Page Numbering (2K SR-1)

Thanks for the suggestions. I'll need to try some of this out, since I also need to maintain existing header and footer informtion, which includes the document page number. The documents that I am creating are to 'unique' government standards for NASA. What I really need, I guess, is a good desktop publishing package.

Thanks again.

Beth

#### Posting Permissions

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