Don't Ever Break Table Rows

User avatar
Sundog
5StarLounger
Posts: 704
Joined: 28 Jan 2010, 22:47
Location: Alien Country (Roswell NM)

Don't Ever Break Table Rows

Post by Sundog »

In Word 2007, in every document I work on that has tables, I do not ever want Word to "Allow row to break across pages." How do I change this default behavior, so I don't have to uncheck the @##$% box for every table?
Sundog

User avatar
HansV
Administrator
Posts: 78524
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Don't Ever Break Table Rows

Post by HansV »

As far as I know, you can't change the default behavior. You could create the following macro in your default template Normal.dotm:

Code: Select all

Sub StopBreakRow()
  Dim tbl As Table
  For Each tbl In Selection.Tables
    tbl.Rows.AllowBreakAcrossPages = False
  Next tbl
End Sub
If you assign it to a Quick Access Toolbar button and/or custom keyboard shortcut, you can easily turn off "Allow row to break across pages" for all tables within the selection.
Best wishes,
Hans

User avatar
Sundog
5StarLounger
Posts: 704
Joined: 28 Jan 2010, 22:47
Location: Alien Country (Roswell NM)

Re: Don't Ever Break Table Rows

Post by Sundog »

That will do the trick! Thanks, Hans.

Another way that I've implemented this is to define a custom table with that option unchecked, and save it to the Quick Styles Gallery and BuildingBlocks.dotx.
Sundog