TheraNetwork - http://www.theranetwork.com
MACRO: Auto Table Resize
http://www.theranetwork.com/Articles/23/1/MACRO(1)--Auto-Table-Resize.aspx
Justin Cooke
 
by Justin Cooke
Published on 8/17/2005
 
This article describes how to create a Microsoft Word macro that will automatically resize all the tables on the page.

MACRO: Auto Table Resize
This article describes how to create a Microsoft Word macro that will automatically resize all the tables on the page.  This macro is for Microsoft Word 2003, so the external editor will need to be used. 

Step 1 - Import The Macro:

1.  Download the AutoTableResize.txt attachment from the bottom of the  article by RIGHT clicking the link and selecting "Save Target As..." 

2. Save this file to the desktop.

3.  In Microsoft Word, click Tools, Macro, then Macros.

4.  In the Macro Name textbox enter AutoTableResize, then click Create.

5.  The Microsoft Visual Basic editor will open. 

6.  Click Insert, then click File.

7.  Navigate out to the desktop where the AutoTableResize.txt file is located that was downloaded in step 1.  Select the file and click Open.

8.  Click File, then click Save Normal.  Close the Microsoft Visual Basic Editor.

Step 2 - Installing the Macro Onto the Toolbar:

1.  From Microsoft Word, click Tools, then click Customize.

2.  Select the Toolbars tab.

3.  Click the New button.

4.  Name the toolbar "Documentation".  Make sure the "Make toolbar available to" is set to Normal.dot.  Click OK.

5.  Click the Commands tab.

6.  On the left list view, scroll down to the Macros category.  Select the Macros list item.

7.  Highlight and drag the Normal.NewMacros.AutoTableResize command from the right listbox over to the toolbar, which should be a small grey box that will appear to the left of the Customize window.

8.  Close the customize window.

9.  Drag the Documentation toolbar up to the top toolbars.