Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-15-2019, 04:47 PM
macropod's Avatar
macropod macropod is offline Why are style updates in VBA not reflected in the document? Windows 7 64bit Why are style updates in VBA not reflected in the document? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

Code like:
ActiveDocument.Styles("MyStyle").Font.Italic = True
works for me - all content in that Style is immediately updated to have the italic attribute. Of course, if someone has been overriding Style definitions with direct formatting, simply changing the Style definition may not be enough to get the desired result...
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How Do I stop automatic style updates for Word 2013 Lupe71903 Word 2 02-27-2018 01:48 PM
Why are style updates in VBA not reflected in the document? A mystery: how to hop about in a document, inserting updates in a single, new font? markh10178 Word 3 11-26-2015 04:07 PM
Why are style updates in VBA not reflected in the document? Updates tries to install Office 2010 updates which I don't use jlumbtx Office 1 03-13-2015 04:50 PM
Why are style updates in VBA not reflected in the document? Use multiple style sets in the same Word document (depending on which section the style is in) Ricyteach Word VBA 6 03-09-2015 07:11 PM
Automating document updates with new text wordfoolish2 Word 0 01-04-2011 01:01 PM

Other Forums: Access Forums

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