![]() |
#5
|
||||
|
||||
![]()
This gets rid of EVERY bracket in that style - including ones that the earlier macro didn't put in.
Code:
Sub RemoveBracketsUPDATED() With Selection.Find .ClearFormatting .Style = ActiveDocument.Styles("Normal") .Text = "[\(\)]{1}" .Replacement.Text = "" .Forward = True .Wrap = wdFindContinue .MatchWildcards = True .Format = True .Execute Replace:=wdReplaceAll End With End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
wrdy | Word | 2 | 08-03-2017 06:55 PM |
![]() |
C_Hawk1996 | Word | 1 | 04-13-2016 05:35 AM |
![]() |
OfficeBoy95 | Word | 2 | 05-12-2014 06:31 PM |
How do I add a custom style to tab button? | kennethc | Word | 1 | 04-11-2014 05:25 PM |
How to set style automatically for specific texts | ragesz | Word | 2 | 07-25-2013 07:08 AM |