Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-01-2012, 09:55 PM
ubns ubns is offline macro Table margin Windows 7 32bit macro Table margin Office 2010 32bit
Competent Performer
macro Table margin
 
Join Date: Apr 2012
Posts: 177
ubns is on a distinguished road
Default macro Table margin

Hi,



I may have asked this question earlier - in that case I apologise (though I tried looking could not find).

If I want to select all tables, and then change the Default Cell Margin from 0.19 to 0.00 - what could be done for that.

Regards

Umesh Banga
Reply With Quote
  #2  
Old 08-02-2012, 02:51 AM
OTPM OTPM is offline macro Table margin Windows 7 32bit macro Table margin Office 2010 32bit
Expert
 
Join Date: Apr 2011
Location: West Midlands
Posts: 981
OTPM is on a distinguished road
Default

Hi Umesh

How many tables do you have in your document and is this a static number?

Tony
Reply With Quote
  #3  
Old 08-02-2012, 04:15 PM
macropod's Avatar
macropod macropod is offline macro Table margin Windows 7 64bit macro Table margin Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

try:
Code:
Sub Demo()
Dim Tbl As Table
For Each Tbl In ActiveDocument.Tables
  Tbl.LeftPadding = 0
  Tbl.RightPadding = 0
Next
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
macro Table margin Macro help sought for Word table xan Word VBA 1 04-20-2012 07:50 PM
macro Table margin Macro for table with zeros ubns Word VBA 1 04-16-2012 05:07 AM
Macro to Table Style ubns Word VBA 1 04-16-2012 05:01 AM
Help with pivot table macro ejima Excel Programming 2 02-16-2012 03:45 PM
Sort table using macro saslotteroy Word VBA 2 09-15-2011 02:41 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:46 PM.


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