Stopping Row Breaking for Many Tables

Written by Allen Wyatt (last updated March 5, 2022)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021


When working with tables, you may not want the individual 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 have 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
    Set tbl = Nothing
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.

Note:

If you would like to know how to use the macros described on this page (or on any other page on the WordTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

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, 2013, 2016, 2019, Word in Microsoft 365, and 2021.

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

Adding Drop Shadows

Want your shapes to really "pop" off the page? Add a drop shadow to them, as described in this tip.

Discover More

Using Header Information as the Filename

Save a document for the first time, and Word helpfully suggests a filename you can use or change. If you want this ...

Discover More

Getting Rid of the Ctrl+Click Message

When you add a hyperlink to a document, you can later click that link to display whatever is linked to. Well, you ...

Discover More

Learning Made Easy! Quickly teach yourself how to format, publish, and share your content using Word 2013. With Step by Step, you set the pace, building and practicing the skills you need, just when you need them! Check out Microsoft Word 2013 Step by Step today!

More WordTips (ribbon)

Easily Copying Cell Formatting

Copying table cell formatting from one place to another can be a tedious process as Word doesn't provide a way to do the ...

Discover More

Fitting Text Into Cells

Need a way to make sure your text fits within the space available in a table cell? Word has a handy setting that will ...

Discover More

Applying Borders to Tables

Want to change the borders that Word adds to your tables? You have complete control over the way your borders appear, ...

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}] (all 7 characters, in the sequence shown) 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 1 + 1?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


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.

Videos
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.