Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-09-2014, 03:22 PM
jqavins jqavins is offline How Can I Use a Page Number in a Table Header Row Windows XP How Can I Use a Page Number in a Table Header Row Office 2003
Novice
How Can I Use a Page Number in a Table Header Row
 
Join Date: Jan 2014
Posts: 6
jqavins is on a distinguished road
Default 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 customer requires "Page n of m" in the table header.
  • My company requires "Page x of y" in the footer.
  • My company allows only a particular prescribed header.
    • This prevents me using the document header for the table page numbering.
Separate and simultaneous page numbering by section and document is tricky enough, but that has been solved. (See the link above. MS really should add {DocPage} and {SectionPage} fields; {Page} could continue to work as it always has and the new fields would make life easier in more complicated situations. But I digress.) Now I just need to do that within a table's repeated row and all will be well.



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.
Reply With Quote
  #2  
Old 01-09-2014, 07:31 PM
macropod's Avatar
macropod macropod is offline How Can I Use a Page Number in a Table Header Row Windows 7 32bit How Can I Use a Page Number in a Table Header Row Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #3  
Old 01-09-2014, 09:45 PM
SteveWcg SteveWcg is offline How Can I Use a Page Number in a Table Header Row Windows 7 64bit How Can I Use a Page Number in a Table Header Row Office 2013
Novice
 
Join Date: Jun 2013
Location: Sydney Australia
Posts: 22
SteveWcg is on a distinguished road
Default

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.
Reply With Quote
  #4  
Old 01-09-2014, 10:14 PM
macropod's Avatar
macropod macropod is offline How Can I Use a Page Number in a Table Header Row Windows 7 32bit How Can I Use a Page Number in a Table Header Row Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by SteveWcg View Post
It's difficult and amazingly annoying but put the field in a Text Box.
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]
Reply With Quote
  #5  
Old 01-10-2014, 12:28 AM
Charles Kenyon Charles Kenyon is offline How Can I Use a Page Number in a Table Header Row Windows 7 64bit How Can I Use a Page Number in a Table Header Row Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,081
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

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.
Reply With Quote
  #6  
Old 01-10-2014, 12:55 AM
Charles Kenyon Charles Kenyon is offline How Can I Use a Page Number in a Table Header Row Windows 7 64bit How Can I Use a Page Number in a Table Header Row Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,081
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

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.
Reply With Quote
  #7  
Old 01-10-2014, 02:43 AM
macropod's Avatar
macropod macropod is offline How Can I Use a Page Number in a Table Header Row Windows 7 32bit How Can I Use a Page Number in a Table Header Row Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Charles Kenyon View Post
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.
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]
Reply With Quote
  #8  
Old 01-10-2014, 07:54 AM
jqavins jqavins is offline How Can I Use a Page Number in a Table Header Row Windows XP How Can I Use a Page Number in a Table Header Row Office 2003
Novice
How Can I Use a Page Number in a Table Header Row
 
Join Date: Jan 2014
Posts: 6
jqavins is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
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...
Thanks, the text box hanging off the page header should do it. (Someone in my company might object that I've messed with the required standard header, but I can probably get away with it, since the header will be correct visually.) I can make sure the table starts at the top of a page. I can also put all the fixed text that goes next to the table page number in the text box and have the box fill the entire space of cell; that will make allignment easier.

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.
Reply With Quote
  #9  
Old 01-10-2014, 08:43 AM
jqavins jqavins is offline How Can I Use a Page Number in a Table Header Row Windows XP How Can I Use a Page Number in a Table Header Row Office 2003
Novice
How Can I Use a Page Number in a Table Header Row
 
Join Date: Jan 2014
Posts: 6
jqavins is on a distinguished road
Default

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.
Reply With Quote
Reply

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
How Can I Use a Page Number in a Table Header Row 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
How Can I Use a Page Number in a Table Header Row 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

Other Forums: Access Forums

All times are GMT -7. The time now is 02:10 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft