Author-it: Autofit tables in Word outputOctober 6, 2008
This macro allows ALL tables to resize automatically according to the width of the available space in Word. Very handy if you decide to change your Author-it Media Object’s left margin width at a later date… But be warned—ALL tables will resize to fit the width of the available space, including those you’ve set to be wide or quite narrow. So use it with caution and try it on a test document first.
Add it as an AfterPublish macro.
Sub ResizeTables() Dim myObject As Table For Each myObject In ActiveDocument.Tables myObject.AutoFitBehavior (wdAutoFitWindow) Next End Sub