table width after page setup changes

S

stoffel

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
 
C

Cindy M.

Hi Stoffel,
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??
Depends on which version of Word you have?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 
S

Stefan Blom

See:

How can I resize a table to fit the page's width?
http://word.mvps.org/faqs/tblsfldsfms/FitTableToPage.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


in message
news:[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top