troubleshooting Question

Apply column widths of currently selected table to all tables using VBA

Avatar of Andreas Hermle
Andreas HermleFlag for Germany asked on
Microsoft Word
4 Comments1 Solution541 ViewsLast Modified:
Dear Experts:

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.

Regards, Andreas
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros