#1
|
|||
|
|||
How Can I Use a Page Number in a Table Header Row
This will sound rather convoluted, and probably atract lots of "you don't need to do that, just do this..." sorts of replies, but trust me, I have my reasons, convoluted though they may be.
I want to place a page number field (actually, a computed page number a-la Mr. Kenyon's fine example here) in a table cell, then have that cell's row repeated as a header row, and have the page number computed independantly on each page. I tried placing a simple page number in a cell then repeating the row, and I only get the page number of the first instance on all pages (which came as no surprise.) The reason I need this follows: I am producing a document for a customer that includes several long tables that each spread across many pages. The requirements are:
The present solution, implemented by my predecessor, is to make each page of the document's table a completely separate Word table, with the page numbering information typed mannually into the otherwise identical first row on each page. The disadvantages of this are legion, but I am at a loss for how to do it better. |
#2
|
||||
|
||||
Unless you can put the table's header row(s) into the page header, what you have now is about the best that can be done. Word really doesn't support having two page numbering schemes running alongside each other.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
It's difficult and amazingly annoying but put the field in a Text Box. Fight Word to get the damned thing to wrap properly to the right of the table then copy & Paste to each page.
It works but it's horrendous Haven't tried but a custom callout per page may work to. |
#4
|
||||
|
||||
Given that the OP already has a table cell available in which to put the PAGE field, what benefit would the 'difficult and amazingly annoying', 'horrendous' approach of having to 'fight Word' to get the alignment right by using a textbox deliver?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
You can put a page field into a borderless textbox in the page header and position that so it appears to be float in a table header. I haven't tried that with the calculated field but you certainly could try that.
You would want the textbox to float behind text and not have any fill in the table cell shading. This page number looks like it is in the table header but is actually floating in the page header behind the table. |
#6
|
|||
|
|||
I just checked and the calculated field does work in a textbox in the header that appears to be in the body of the document.
To reserve room for the field in your table, you may want to use a separate cell in the header row (possibly without a dividing border) so that the space will remain blank in the header row. As was stated, placement of this will be a pain. You just have to experiment until it looks right. If someone unaware of the use of the textbox attempts to edit the document, they are likely to have problems. |
#7
|
||||
|
||||
That's OK if the table starts at the top of the page, but won't produce the right effect if it starts half-way down. In that case, the text box will be in the wrong position for the other pages. You'd then have to start messing around with Section breaks & different first page settings...
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#8
|
|||
|
|||
Quote:
Thanks again. It'll take some doing to implement this, but it's doable. I repeat my call for MS to add support for multiple page numbering sequences running in parallel to a Word update in the near future. Mine is the third case needing it that I've seen, and I haven't been looking long for them. |
#9
|
|||
|
|||
Well, thanks again, but the notion was rejected by my internal documents masters, so it's continue with manualy maintaining 200 separate table headers and layouts. Ugh.
|
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is there a way to make a table in a header match the width of the page always? | trueimage | Word | 1 | 10-03-2013 06:13 PM |
begin each section with page 1 in header PLUS continuous page numbering in footer | onemorecupofcoffee | Word | 18 | 09-04-2013 04:31 PM |
How to save the current page in a new file with all the page settings (header, footer | Jamal NUMAN | Word | 6 | 03-15-2012 03:27 PM |
Page number in table of Content | Ritu | Office | 1 | 09-19-2011 05:10 AM |
Header - seperate chapter, continue page number | Cpt Black | Word | 0 | 02-03-2009 06:45 AM |