Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. Sub Autofit_All_Tables()
  2. Application.ScreenUpdating = False
  3. Dim Tbl As Table
  4. For Each Tbl In ActiveDocument.Tables
  5. Tbl.AutoFitBehavior (wdAutoFitWindow)
  6. Tbl.AllowAutoFit = True
  7. Next
  8. Application.ScreenUpdating = True
  9. Application.ScreenRefresh
  10. MsgBox "Done", vbOKOnly
  11. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement