Written by Allen Wyatt (last updated November 16, 2024)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, Word in Microsoft 365, and 2021
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:
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, Word in Microsoft 365, and 2021.
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!
Have you ever created a table that never seems to flow to a second page, even when it should? This could be caused by any ...
Discover MoreWhen you print a table that includes borders, those borders should be crisp and clear on the printout. If you get some ...
Discover MoreCan you put a numbered outline in a table? Yes, you can. But Word is rather prickly when it comes to using the keyboard ...
Discover MoreFREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
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.
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.
Visit the WordTips channel on YouTube
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments