View Single Post
  #3   Report Post  
Posted to microsoft.public.word.tables
Stefan Blom Stefan Blom is offline
external usenet poster
 
Posts: 8,428
Default table width after page setup changes

See:

How can I resize a table to fit the page's width?
http://word.mvps.org/faqs/tblsfldsfm...ableToPage.htm

The macro for Word 2000 and later presented in the article:

Selection.Tables(1).PreferredWidthType = wdPreferredWidthPercent
Selection.Tables(1).PreferredWidth = 100

can be modified to affect all tables:

Dim t As Table
For Each t In ActiveDocument.Tables
t.PreferredWidthType = wdPreferredWidthPercent
t.PreferredWidth = 100
Next t

--
Stefan Blom
Microsoft Word MVP


"stoffel" wrote in message
ps.com...
Hi!

I changed my page setup (smaller margins) and found that all my

tables
kept their original (unspecified) width, while i want them all to be
100%.

Is there a quick way to change all the tables' width at once??

Thx