Consulting

Results 1 to 6 of 6

Thread: Automatic page breaking for tables in Word

  1. #1

    Unhappy Automatic page breaking for tables in Word

    I was wondering if someone could help me. I'll outline the situation for you. What I'm trying to do is generate using VBA, copies of multiple little tables across a number of pages. After populating the tables with the appropriate date (which I can do okay) I want to be able to close up all the gaps (which I can do fine as well) but I also want to make sure that any of the smaller tables do NOT wrap over onto a new page. Is anyone aware of something in Word that will allow me to do this? Or will I need to resort to manually calculating when a table wraps over on to a new page and then cause a page break prior to it?

    I've looked in word itself and the only option I can find is via:-
    - Selecting the table
    - Right Click then goto Table Properties...
    - Select the Row tab
    - Unchecking Allow Row to Break Across Pages

    Really what I want is a Column option and not a row!

    Thanks in advance.

  2. #2
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,713
    Location
    "Really what I want is a Column option and not a row!"

    Huh???????? What would a column break (which does not exist) have anything at all to do with what you are asking? What would a column break have to do with a page break?

    As for the actual question, what is wrong with simply unchecking Allow Row to Break for the tables?

  3. #3
    Quote Originally Posted by fumei
    "Really what I want is a Column option and not a row!"

    Huh???????? What would a column break (which does not exist) have anything at all to do with what you are asking? What would a column break have to do with a page break?

    As for the actual question, what is wrong with simply unchecking Allow Row to Break for the tables?
    Sorry the last comment probably wasn't too clear, but you would understand if you saw what I have to do.

    Unfortunately the client who requested the document doesn't want any of the multiple tables to overlap a page (pretty inconvenient!) but fortunately each table is small enough to fit on any single page.

    Allow Row Break for the Tables won't cause a page break before the table - which is what I sorely need.

  4. #4
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,713
    Location
    "Sorry the last comment probably wasn't too clear, but you would understand if you saw what I have to do."

    Ummm, well thanks for explaining it. Much appreciated.....

    "Unfortunately the client who requested the document doesn't want any of the multiple tables to overlap a page (pretty inconvenient!) but fortunately each table is small enough to fit on any single page."

    Then, ummmm, do it. It can be done. What is your problem?

    "Allow Row Break for the Tables won't cause a page break before the table - which is what I sorely need." Then do that as well. It can be done. What exactly is your problem?

  5. #5
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,713
    Location
    Sorry. I realize that sounded a bit critical.

    You can cause a page break before, by using that property of the paragraph Style of the first row.

    Using Styles is very helpful, and Word is designed for them.

    The thing with the Column break though....I still am HUH? Columns are left to right, across the page. So, help me out here....explain what that has to do with page breaks?

  6. #6
    VBAX Regular
    Joined
    Aug 2004
    Location
    On a 100 acre hobby farm in beautiful west Quebec.
    Posts
    87
    Location
    You could use keep conditions. For each row except the last one, include Format | Paragraph | Keep With Next (and you could also use Keep Together, although the table property will look after that for you in most cases). This will keep the rows of your small tables together on a page. Note that Word will ignore the keep conditions if there isn't room to keep it all together on a page.
    Eric

    Experience is not what happens to a man; it is what a man does with what happens to him. ? Aldous Huxley

Posting Permissions

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