Turning Off Automatic Resizing of Tables by Default

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


2

When Carolyn inserts a table, she always needs to manually configure the new table so that it doesn't automatically resize depending on contents. (She needs to display the table's properties and, on the Table tab, click Options to get to the setting.) This is very tedious, as Carolyn almost never wants the Automatically Resize to Fit Contents check box to be selected, but Word seems to insist on turning on the option.

There are two ways you can handle this. First, you can create a table style, if desired, that can contain this setting. Here are the general steps:

  1. Format a table like you prefer, making sure that automatic resizing is also set as desired.
  2. Place the insertion point in the table.
  3. On the Table Design tab of the ribbon, click the icon at the bottom-right of the Table Styles group. From the options presented, choose New Table Style.
  4. In the resulting dialog box assign a name to the style and also indicate if it should be available just within the document or in all documents that use the current template.

Once defined, the table style can be used to format other tables rather easily, and each will have the settings desired.

The second way to approach this is by creating a small macro that will make sure the setting is set correctly. This example changes the setting in all tables in the document:

Sub DisableAutoFit()
    Dim Tbl As Table

    Application.ScreenUpdating = False
    For Each tbl In ActiveDocument.Tables
        Tbl.AllowAutoFit = False
    Next
    Application.ScreenUpdating = True
End Sub

Since the macro steps through all tables, it is especially helpful when you are working with documents created by others. The macro can, of course, be added to the Quick Access Toolbar or associated with a keyboard shortcut.

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

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

Changing Information in Multiple Documents

If you need to change text in many documents at the same time, Word isn't the best tool to use. Here's some ideas on ways ...

Discover More

Summing Only the Largest Portion of a Range

Given a range of cells, you may at some time want to calculate the sum of only the largest values in that range. Here is ...

Discover More

Word 2013 Styles and Templates (Table of Contents)

Styles are at the heart of Word's formatting power. Understanding how to use styles can greatly increase your ability to ...

Discover More

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

More WordTips (ribbon)

Finding Text at the End of a Table Cell

How do you use Find and Replace to locate information at the end of a table cell? Interestingly enough, there is no way ...

Discover More

Freezing Cell Size when Inserting Pictures

Insert a picture into a table cell, and you may quickly find that the table is no longer the size you expected. Here's ...

Discover More

Finding a Cell Reference

Want to know what the reference address is for a particular cell in a table? Word won't tell you, but you can use a macro ...

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 six less than 6?

2024-11-19 14:42:32

Andrew

From sources on the internet (thank Suzanne Barnhill) and my investigation, it seems that there is no way to turn off the automatically-resize setting by default. It seems to be a table property that can be set, but not a style property. And while the Table Normal style can be edited (though only through VBA, not the user interface ), that style does not have the ".AllowAutoFit" property and a recorded macro unsets when changing the setting for a particular table.

For many years I've used these macros:

Sub TableFormatMyWay()
' Formats ActiveDocument's current table.
Dim b As Border

TableFormatAlignment HorizontalAlignment:=wdAlignParagraphLeft, VerticalAlignment:=wdCellAlignVerticalTop
Selection.Tables(1).Select
With Selection.Tables(1)
.AllowPageBreaks = False
.AllowAutoFit = False
.Rows.AllowBreakAcrossPages = False
.TopPadding = InchesToPoints(0)
.BottomPadding = InchesToPoints(0)
.LeftPadding = InchesToPoints(0.08)
.RightPadding = InchesToPoints(0.08)
.Spacing = 0
For Each b In .Borders
b.LineStyle = wdLineStyleNone
Next b
.Borders.Shadow = False
End With
End Sub

Sub TableInsertMyWay()
With Dialogs(wdDialogTableInsertTable)
If .Show = DialogSelectedOKButton Then TableFormatMyWay
End With
End Sub


2024-11-18 04:18:30

Alan

I was going to suggest the first method, but the option (Automatically resize to fit contents) is always greyed out in the Table Style. In both the existing Styles and a new Style.


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.