Apply column widths of currently selected table to all tables using VBA
Posted on 2013-08-30
I got a document with ...
... hundreds of tables.
... all of them have the exact same number of columns
Now I would like to manually adjust the column widths in just one (1) table and then by running the macro (with the cursor residing in the table whose columns got adjusted), the column widths of the currently selected table are applied to all of the remaining tables.
Is it possible to run such a macro?
And one more thing: One of the documents may have tables with just 3 columns, other documents may have tables with 7 columns (as I stated before, all of the tables in the documents have the same number of columns). The macro should be able to accommodate any numbers of columns. .
I wonder whether this is possible? Help is much appreciated. Thank you very much in advance.