View Single Post
  #1   Report Post  
Klaus Linke
 
Posts: n/a
Default Can tables be permanently set to Fixed Column Width?

"Stefan Blom" wrote:
A different way to accomplish what you want is to
record a macro with the desired settings and then
attach it to a toolbar button.



I use a macro that
-- sets AutoFit to contents (so the column widths are optimized),
-- then sets AutoFit to window (so the table width gets set to the page
width),
-- then sets AutoFit to fixed (so the column widths stay fixed, and Word
doesn't slow down from re-adjusting them all the time).

' applies to the table the cursor is in:
With Selection.Tables(1)
.AutoFitBehavior (wdAutoFitContent)
ActiveDocument.Repaginate
.AutoFitBehavior (wdAutoFitWindow)
ActiveDocument.Repaginate
.AutoFitBehavior (wdAutoFitFixed)
End With

Regards,
Klaus