Word does not have any feature to autofit a table to the display window.
Issue with Autofit to Window Feature for Tables in Microsoft Word
Hello Dear
I hope this email finds you well. I am writing to express a pressing issue we have been facing while using Microsoft Word. We regularly use the program in our daily work, and currently, we are dealing with a significant challenge.
We have a large document with more than 100 tables, and unfortunately, we are unable to automatically adjust all these tables to fit the size of the window. This makes the editing and reading process exceptionally difficult and time-consuming. We desperately need your assistance in finding a solution that can be applied to all tables simultaneously.
Could you kindly provide guidance on a method or a feature in Microsoft Word that allows us to autofit all tables in the document, considering the substantial number of tables we are dealing with? Your expertise in this matter would be immensely valuable to us.
We appreciate your efforts in providing support and assistance. Thank you for your attention and your time. We look forward to receiving your guidance soon.
Best regards,
Moustafa Abdel Fattah
Microsoft 365 and Office | Word | For home | Windows
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
2 answers
Sort by: Most helpful
-
-
Stefan Blom 324.9K Reputation points MVP Volunteer Moderator2023-11-01T16:46:05+00:00 Are you referring to the AutoFit Window command on the AutoFit drop down in the Cell Size group on the (Table) Layout tab?
As far as I know, the following code should do the trick:
Sub SetTablesToFitTheirContainers() 'Stefan Blom, MVP, November 2023 Dim t As Table For Each t In ActiveDocument.Tables t.AutoFitBehavior wdAutoFitWindow Next t End Sub