Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-02-2021, 10:54 PM
WJSwanepoel WJSwanepoel is offline Global Property Change Windows 10 Global Property Change Office 2007
Advanced Beginner
Global Property Change
 
Join Date: Dec 2019
Location: Krugersdorp, South Africa
Posts: 65
WJSwanepoel is on a distinguished road
Question Global Property Change

I have numerous tables in a document and wish to standardize properties across all tables, eg. Font, Left align of text, Paragraph indent etc. Is there an easy way to achieve this?
Reply With Quote
  #2  
Old 02-02-2021, 10:59 PM
macropod's Avatar
macropod macropod is offline Global Property Change Windows 10 Global Property Change Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
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

The simplest way is to create a paragraph Style with the desired attributes, then apply that Style to range spanned by each table. You already have code for looping through the tables.
Code:
  With Tbl
    .Range.Style = "MyStyle"
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 02-02-2021, 11:08 PM
WJSwanepoel WJSwanepoel is offline Global Property Change Windows 10 Global Property Change Office 2007
Advanced Beginner
Global Property Change
 
Join Date: Dec 2019
Location: Krugersdorp, South Africa
Posts: 65
WJSwanepoel is on a distinguished road
Default

Thank you. I will give that a go.
Reply With Quote
  #4  
Old 02-02-2021, 11:16 PM
WJSwanepoel WJSwanepoel is offline Global Property Change Windows 10 Global Property Change Office 2007
Advanced Beginner
Global Property Change
 
Join Date: Dec 2019
Location: Krugersdorp, South Africa
Posts: 65
WJSwanepoel is on a distinguished road
Default

Thank you Paul. I tested your suggestion and it does everything I need to do.
Reply With Quote
Reply

Tags
properties, standardize, table



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to change title property of images raphael75 Word VBA 3 07-16-2019 06:12 AM
How does the Enterprise Global and local Global an User Regitry work together? Lupus74 Project 0 08-31-2018 12:18 PM
Global Property Change Global change of one of multiple fonts doctorduncan Word 1 10-24-2017 01:23 PM
Global change to Word Art texts ? Clark711 PowerPoint 1 09-04-2013 11:25 PM
Are changes to the ribbon global? TechEd Word 0 05-26-2011 12:23 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:44 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