Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-10-2019, 07:44 AM
perezbalen perezbalen is offline Change style when quote Windows 10 Change style when quote Office 2019
Novice
Change style when quote
 
Join Date: Dec 2019
Posts: 1
perezbalen is on a distinguished road
Default Change style when quote

Hi




I like to have text inside quotes in a different style than "normal". So far I use a macro that basically does this:


Code:
    Selection.Find.Replacement.Style = ActiveDocument.Styles("inQuotes")
    With Selection.Find
        .Text = "[" & ChrW(8220) & "]*[" & ChrW(8221) & "]"
        .Replacement.Text = ""
    End With
Which searches the whole document and puts the "inQuotes" style to anything in quotes.


But, I have to manually do it every time. I was wondering it there's a better way. A way that, after i open a quote, the style changes to "inQuotes", and after I colse a quote, the style changes back to "Normal"


Any ideas?
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change and implement default theme font style change Nikko963 Word 5 05-04-2018 09:11 AM
Change style when quote Modifying horizontal rules in Intense Quote style oakb Word 2 03-28-2017 05:02 PM
Change style when quote change Bibliography style SashikalaB Word VBA 1 02-06-2017 11:44 PM
Change style when quote Change style of formulas Jacky837 Word 3 08-08-2016 11:27 AM
Change style when quote How to globally change the formatting of a bullet style to another style? ravl13 Word 5 03-10-2013 05:04 PM

Other Forums: Access Forums

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