Take a Guess to Win Windows 10 Pro Key!
previous arrow
next arrow
Slider

How To Adjust The Width And Height Of All Tables In A Word Document?

Date:2021-7-9 Author:Sandra

In today’s tutorial, the author would like to share with you guys the fastest way to adjust the width and height of tables in a Word document.

Let’s take an example. There are four tables of different sizes, and we need to adjust them to the same size quickly.

How To Adjust The Width And Height Of All Tables In A Word Document?

Go to the Developer tab and choose Visual Basic.

How To Adjust The Width And Height Of All Tables In A Word Document?

Insert a module first, then type this code in the box. (You can just copy and paste)

How To Adjust The Width And Height Of All Tables In A Word Document?

Sub Selectallthetables()

Dim tempTable As Table

Application.ScreenUpdating = False

If ActiveDocument.ProtectionType = wdAllowOnlyFormFields Then

MsgBox “The document is protected. Multiple tables cannot be selected at this time!”

Exit Sub

End If

ActiveDocument.DeleteAllEditableRanges wdEditorEveryone

For Each tempTable In ActiveDocument.Tables

tempTable.Range.Editors.Add wdEditorEveryone

Next

ActiveDocument.SelectAllEditableRanges wdEditorEveryone

ActiveDocument.DeleteAllEditableRanges wdEditorEveryone

Application.ScreenUpdating = True

End Sub

Then we click on the green triangle to run the code.

How To Adjust The Width And Height Of All Tables In A Word Document?

After you run the code. You will notice that all the tables in the Word document are selected. Go to the Layout and choose Properties.

How To Adjust The Width And Height Of All Tables In A Word Document?

You can adjust the tables’ size in bulk here.

How To Adjust The Width And Height Of All Tables In A Word Document?
How To Adjust The Width And Height Of All Tables In A Word Document?

Now, all the tables are changed into the same size.

How To Adjust The Width And Height Of All Tables In A Word Document?
Copyright Statement: Regarding all of the posts by this website, any copy or use shall get the written permission or authorization from Myofficetricks.

Leave a Reply

Your email address will not be published. Required fields are marked *