Stopping Row Breaking for Many Tables

by Allen Wyatt
(last updated December 20, 2014)

1

When working with tables, you may not want the rows in the table to break across pages. In other words, you want everything in each row to be on the same page. This is easy enough to do manually—you just adjust the table properties in this manner:

  1. Select the row (or rows) you want to affect.
  2. Display the Layout tab of the ribbon.
  3. Click the Properties tool in the Table group. Word displays the Table Properties dialog box.
  4. Make sure the Row tab is selected. (See Figure 1.)
  5. Figure 1. The Row tab of the Table Properties dialog box.

  6. Clear the Allow Row to Break Across Pages option.
  7. Click OK.

Now each row will stay on its own page. The table will still break across pages, but individual rows in the table will not.

While this seems easy enough, it can be tiresome to go through this same process for lots of tables in a document. For example, if you've got 50 tables, then you'd have to go through the above steps 50 times. Argh!

The answer is to use a macro to change the Allow Row to Break Across Pages setting for all the tables. The following will do the trick:

Sub StopRowBreaking()
    Dim tbl As Table
    For Each tbl In ActiveDocument.Tables
        tbl.Rows.AllowBreakAcrossPages = False
    Next
End Sub

The macro works because it steps through each table and clears the setting (the AllowBreakAcrossPages property) for all the table's rows as a group. It is very quick, even if you have 50 or more tables in your document.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (13339) applies to Microsoft Word 2007, 2010, and 2013.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Extra Spaces after Inserting a Building Block

Building blocks are a great tool for inserting standard information in your documents. It is also possible, however, to get ...

Discover More

Unhiding Columns that are Persistently Hidden

If you were trying to format a worksheet and nothing you did could make the first two columns appear, would you be ...

Discover More

Adjusting Row Height for a Number of Worksheets

Adjusting the height of a row or range of rows is relatively easy in Excel. How do you adjust the height of those same rows ...

Discover More

Do More in Less Time! Are you ready to harness the full power of Word 2013 to create professional documents? In this comprehensive guide you'll learn the skills and techniques for efficiently building the documents you need for your professional and your personal life. Check out Word 2013 In Depth today!

More WordTips (ribbon)

Distributing Table Rows Evenly

If you've adjusted the height of your table and the rows within the table, you might want to later return all those rows to a ...

Discover More

Limiting Lines in a Table Cell

When creating tables, Word automatically sets the size of the cells. But what if you want to make sure each cell is a certain ...

Discover More

Spacing Before and After Tables

Tables can be a necessity in many types of documents. However, they can be a bother to get positioned properly relative to ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 2 + 1?

2014-12-20 23:25:28

Art Osgatharp

For more granular control, change ActiveDocument.Tables to Selection.Tables. Click and drag, or otherwise select, the part of the document containing the table or tables to process, then run the macro. The macro will process each table in the selection, leaving un-selected tables in the document unaffected.


This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.