5

I have a bunch of large documents, with many tables that have different and inconsistent fill styles - some of them are not readable in black and white when printed.

I cannot change the background fill for all the tables at once. The problem I have is that when I open such a document, and Select All, the Table Properties are inactive.

Do you know a technique for selecting all the tables, or a method for applying global format of tables, with a script or some other way?

2 Answers 2

4

Create a macro in Word using the following code:

Sub SelectAllTables()
    Dim tbl As Table
    Application.ScreenUpdating = False
    For Each tbl In ActiveDocument.Tables
        tbl.Range.Editors.Add wdEditorEveryone
    Next
    ActiveDocument.SelectAllEditableRanges (wdEditorEveryone)
    ActiveDocument.DeleteAllEditableRanges (wdEditorEveryone)
    Application.ScreenUpdating = True
End Sub

Run the macro to select all tables, then you can modify their backgrounds in one go.

1
  • Oh, was that simple! I thought I'd need a full featured library of table tools... thanks!
    – PA.
    Dec 19, 2012 at 8:06
0

I believe Kutools for Word add-in allows you to select all tables at once. It's also compatible with Word 2003.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .