View Single Post
 
Old 01-16-2020, 09:17 AM
LBruce LBruce is offline Windows 10 Office 2013
Novice
 
Join Date: Aug 2019
Posts: 9
LBruce is on a distinguished road
Default Formatting Nested Tables

I have Word documents that include tables with nested tables, and X number of nested tables within those nested tables, inconsistently from doc to doc. A lot of these tables are extending off the right side of the page. I'm looking for a macro to AutoFit Content all the tables and nested tables, so they fit on the page. I can get the main tables formatted fine, but from what I understand, Word doesn't consider nested tables as tables. And since the nested tables could be in any cell of the table above it, the macro would have to search through each cell to see if there's a table in the cell to format. I'm okay with some of the deep-nested tables being narrow in the end, as long as I can read its content.

I'm sure this is possible, I just need some guidance.

Thank you!
Reply With Quote