RE: Word - Global Table Updates

Subject: RE: Word - Global Table Updates
From: Salan Sinclair <salansinclair -at- shaw -dot- ca>
To: "TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Mon, 20 May 2002 12:12:50 -0700


JR asked:
"Is there a way to update the properties of all tables in a document?"

You can easily apply the macro to every table in the document.
That's one of the big benefits of VBA.

For example, here is a macro to change the indent of each table and then
auto fit it.
Just modify the lines inside the For/Next loop to do whatever you want.

Sub TableIndent()
For Each aTable In ActiveDocument.Tables
aTable.Rows.LeftIndent = InchesToPoints(2)
aTable.AutoFitBehavior wdAutoFitContent
Next aTable
End Sub

Feel free to write me if you need more info.
__________________________________________________________
Salan Sinclair, salan -at- wordclarity -dot- com, www.wordclarity.com
t.604.709.8658, cell.604.839.6208, f.604.709.8651




^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Free copy of ARTS PDF Tools when you register for the PDF
Conference by May 15. Leading-Edge Practices for Enterprise
& Government, June 3-5, Bethesda,MD. www.PDFConference.com

Check out RoboDemo for tutorials! It makes creating full-motion software
demonstrations and other onscreen support materials easy and intuitive.
Need RoboHelp? Save $100 on RoboHelp Office in May with our mail-in rebate.
Go to http://www.ehelp.com/techwr-l
---
You are currently subscribed to techwr-l as: archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit
http://www.raycomm.com/techwhirl/ for more resources and info.



References:
Word - Global Table Updates: From: Justin Ressler

Previous by Author: Pinsky poem in the Atlantic "Jar of Pens"
Next by Author: Re: Study: Internet Explorer Dominates the Web
Previous by Thread: Word - Global Table Updates
Next by Thread: Porting guide


What this post helpful? Share it with friends and colleagues:


Sponsored Ads