Results 1 to 10 of 10
  1. #1
    New Lounger
    Join Date
    Sep 2002
    Location
    jerusalem, Israel
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Table continuation (2000 )

    I have a table which continues over several pages, using Heading Rows Repeat. How could I manage to have the word "continued" appearing in any heading except, of course, in the first one, at the start of the table? Thanks, James

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Table continuation (2000 )

    I'm sure a Word guru will come up with a table solution, but here is my <img src=/S/2cents.gif border=0 alt=2cents width=15 height=15>: if you put the table into its own section, you can use the page header to display the desired information instead of using Heading Rows Repeat. You can set First Page Different for this section in page layout.

  3. #3
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Table continuation (2000 )

    I don't think there is a "table" solution. Using Heading Rows Repeat does just that. There is no way to "disconnect" heading rows, the way you can with header/footers. I experimented with an IF field,

    {IF {page} > 1 "continued" ""}

    but whatever shows up on the first page, shows up on all the pages. Hans posted the most elegant workaround.

  4. #4
    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: Table continuation (2000 )

    Phil,

    Here's a potential solution that probably could use an IF field (Phil: I take my hat off to you when it comes to these things). It uses VBA and I know you don't use VBA. I don't do much VBA in Word either. So maybe someone else like Hans could help out here. There's actually 2 related approaches.

    I'll assume you position your insertion point in the first row of the table and that there's a way to determine when you're no longer in a table. Then you'd run a macro that does the following for the current table:
    - somehow go down the page until you get to the top of the next page; this could be done by going to the next row one row at a time and checking your vertical position - when it's less than it was for the previous row, you're on a new page. I posted a macro for filling a page with empty rows about 2 months ago which used this technique but don't have the time to find it now (did a quick search and it was post 176353 in Sept but can't get the URL to paste correctly). Or if there's a way to go from one page to the next, that's even better. But I don't envision this macro taking very long to execute so I don't think time/efficiency would be an issue.
    - I believe the first row you'd be in on the new page would be the author's row, not the heading row(s) that Word put in. If not, then you need to advance another row(s) to go the author's row.
    - insert a row and put in some kind of "Continued" text.
    - repeat from above until you find you've gone past the end of the table.

    The other approach would look at the Heading Rows, uncheck the heading rows indicator while making a copy of the text, march down the table as above. When you get to the top of a page (and are still in the table), insert a row with the copied text (however you copied it) and include "continued" in some form in that row.

    I could see where the 2nd approach doesn't buy much since you may not want the "continued" to be part of the text for the "Heading Rows" or it might be difficult in code to determine how to add it to that row. So you end up adding the "Continued" in a separate row anyway. In such a case, you're worse off than the first approach.

    In either case, I think you'd want a macro that deletes these code-generated "Continued" rows. If the user adds rows above any "Continued" row, this pushes the code-generated row down. So you need to have the ability, either in a separate macro or as the 1st part of the above macro, to delete existing "Continued" rows and start over. Perhaps to make it easier and depending on the exact requirements, you'd add some hidden text in the code-generated row or create/use a specific style for the "Continued" text or add a bookmark to make finding the code-generated rows easier and reliable (eg, would not want to delete a row where the author entered "Continued" for some reason).

    Of course, another disadvantage is that we're adding rows to the table (but hopefully not many - 1 per page). Only way around that is with the 2nd approach, which I like less than the 1st.

    Any takers out there?

    Fred

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Table continuation (2000 )

    Fred,

    Your idea has the advantage of doing exactly what jloew wanted. But I see several objections:
    <UL><LI>As you noted, when the table gets edited, the "continued" rows would shift up or down. You'd have to rely on another macro to delete these rows, then start over.
    <LI>When the document is edited on a computer with different printer settings from the original one, pagination may change, so you'd have to run the "delete" and "insert" macros again. Not very pleasant in an environment where different people access a document.
    <LI>Heading rows are not editable; page headers are but the user must take action to go there. The "continue" rows, however, are ordinary table rows, so it's very easy for the user to accidentally mess them up.[/list]So, although it could be done, I would advise against it.

  6. #6
    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: Table continuation (2000 )

    Hans,

    In general, I agree with you.

    On your first item about deleting and reinserting, I addressed that. Yep, that has to be done.

    On your second item about using it on a different machine, one could make autoopen macros that would call the same code associated with deleting/inserting per some manual invocation. This would get around that. But it does add to the time at open time - something that I don't like to do unless absolutely necessary.

    On your third item about "accidentally" messing up these inserted rows. Tend to agree. However, if the user changes the "inserted row" to be a "real row" from the point of view of his/her text, then it's really no worse than adding another row. You'd have to re-run the delete/insert procedures again. In the case here, the macro would not find anything to delete and that should be ok. It then inserts a "continued" row and you're done. Of course, if the user partially types something over "continued" or in some other col on that row, then things will be messed up.

    I wonder if jloew could live with the above limitations or is it better to leave things alone?

    Fred

  7. #7
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Table continuation (2000 )

    The attached word document is a really ugly hack, but it might be easier than the alternatives.

    The heading row has the word continued.
    The second row of the table has a white rectangle that covers the word continued on the first row.

    StuartR
    Attached Files Attached Files

  8. #8
    New Lounger
    Join Date
    Sep 2002
    Location
    jerusalem, Israel
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Table continuation (2000 )

    Thanks,

    This is the reversed but more smart version of the simple idea I actually carried out: adding "Continued" in a text box on top of each repeated heading. The problem is that those text boxes may shift. In the proposed example, you need only check the first one which is positioned to hide the text "continued " in the first real heading. Good idea. Thanks, James

    Postscriptum: I tried it but it did not work in m italic y document:
    1. When I attempted to insert a text box or rectangle they just inserted between the tex instead of on top.!
    2. When I just copied the rectangle/text box from the attachment, it did cover the word 'continued' in the (first) header, but continued to do so also in the header on the next page ! (in contrast to what occurred in the attached table from wopr!)

    Anyone has an idea what happened in each case?

  9. #9
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Table continuation (2000 )

    > Anyone has an idea what happened in each case?

    1. The text box needs to be formatted as Layout > "In Front of Text"
    2. The anchor for the text box needs to be moved to a cell on the second row and then locked there with Format Text Box > Layout > Advanced > Lock Anchor

    StuartR

  10. #10
    New Lounger
    Join Date
    Sep 2002
    Location
    jerusalem, Israel
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Table continuation (2000 )

    It worked! Great , thanks, James

Posting Permissions

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