Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-10-2012, 02:53 PM
knightmetal knightmetal is offline Formatting all tables Windows 7 32bit Formatting all tables Office 2007
Novice
Formatting all tables
 
Join Date: Sep 2012
Posts: 2
knightmetal is on a distinguished road
Default

Well, I'm replying to myself, just for people having the same problem in the future

Code:
Sub Macro1()
'
Dim pT As Word.Table
For Each pT In ActiveDocument.Tables
pT.PreferredWidth = MillimetersToPoints(170)
Next
MsgBox "done"
End Sub
170 is the width of the tables given in mm.

Last edited by macropod; 09-10-2012 at 10:42 PM. Reason: Added code tags & formatting
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting all tables Macro for selecting pages and formatting of tables ubns Word VBA 25 08-15-2012 11:48 PM
Formatting all tables Formatting multiple tables and columns efficiently? table_column Word Tables 1 07-02-2012 05:55 PM
Another Case of Automatic/Zombie Formatting of Tables MKummerfeldt Word Tables 0 10-31-2011 10:40 AM
Formatting all tables Copy table cell formatting across multiple cells / tables pakistanray Word Tables 2 10-31-2011 08:07 AM
Whacked formatting in tables (2007) Roscoe Word Tables 6 06-11-2010 02:48 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:52 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft