#1   Report Post  
Posted to microsoft.public.word.tables
Maya Maya is offline
external usenet poster
 
Posts: 1
Default Autofit

In Word 2007 i want to use Auto fit to fit more than one table in the
document, I dont want to go one by one for each table and click autofit. Is
there a way to do autofit in 1 click for all tables in a document?
  #2   Report Post  
Posted to microsoft.public.word.tables
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Autofit

Run a macro containing the following code

Dim i As Long
With ActiveDocument
For i = 1 To .Tables.Count
.Tables(i).AutoFitBehavior = True
Next i
End With


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"Maya" wrote in message
...
In Word 2007 i want to use Auto fit to fit more than one table in the
document, I dont want to go one by one for each table and click autofit.
Is
there a way to do autofit in 1 click for all tables in a document?


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is AutoFit Columns? Dawn Tables 2 December 14th 09 10:53 AM
which of the following is not an Autofit option? mel Microsoft Word Help 1 July 31st 08 04:51 PM
autofit rows jen_writer Tables 1 February 8th 07 09:34 AM
Table AutoFit Not Working koala824 at Comcast Tables 3 July 22nd 06 05:18 PM
Autofit is giving me fits Mark Tables 1 June 21st 06 10:28 AM


All times are GMT +1. The time now is 02:57 AM.

Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright 2004-2023 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"