Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resizing tables

Status
Not open for further replies.

WhileBasDoNext

Programmer
Oct 16, 2001
1
NL
I have a problem with an existing external macro, which uses Excel to generate tables and paste it into a word document. The pasted tables appear in Word 2000 much too big (width). I want them aligned with the word document's width (100% of the left+right margin)

When I enumerate through all tables in the worddoc and I set all tables(n).PreferredWidthType=Percentage, tables(n).PreferredWidth=100, nothing happens. It seems word wants to have a single line of text unwrapped in a single cell, taking up as much of the width as necessary.

How do I tell word to resize a table to page width and proportionally resize all column widths?? The tables also have spanned cells so resizing individual columns is impossible.

Thanx in advance for helping.

Bas ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top