A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Autofit multiple tables to window



 
 
Thread Tools Display Modes
  #1  
Old August 5th, 2006, 03:38 AM posted to microsoft.public.word.tables
Stacey
external usenet poster
 
Posts: 126
Default Autofit multiple tables to window

I exported a number of tables from another program into my Word document. Now
I need to format all these tables (about 50 pages worth) so that they fit
across the width of my page. How do I "autofit to window" multiple tables at
the same time?
  #2  
Old August 5th, 2006, 06:27 AM posted to microsoft.public.word.tables
Jezebel
external usenet poster
 
Posts: 1,369
Default Autofit multiple tables to window

I had to do exactly this just last week --

Sub Macro1()
'
Dim pT As Word.Table

For Each pT In ActiveDocument.Tables
pT.PreferredWidth = MillimetersToPoints(170)
Next

MsgBox "done"

End Sub

In my case I needed all the tables to be 170mm wide -- insert your own value
as needed.



"Stacey" wrote in message
...
I exported a number of tables from another program into my Word document.
Now
I need to format all these tables (about 50 pages worth) so that they fit
across the width of my page. How do I "autofit to window" multiple tables
at
the same time?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tables setting multiple section breaks with multiple headers [email protected] Tables 1 January 19th, 2006 10:05 AM
Display same information on a text box from multiple tables macace Using Forms 2 December 22nd, 2005 07:47 PM
Editing forms with data from multiple tables DiHo Using Forms 3 December 22nd, 2005 02:31 PM
Table Design A. Williams Database Design 3 April 29th, 2005 07:02 PM
Relationship design problem with multiple tables Don New Users 3 November 24th, 2004 06:27 PM


All times are GMT +1. The time now is 05:59 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.