![]() |
#1
|
|||
|
|||
![]()
I found a macro to add brackets around underlined text and remove the underline. Now I need to apply braces around strings of strikethrough text.
The code below works for the underlined text, but I still need to address the strikethrough text. Sub Tag_Under_Line() Selection.ClearFormatting Selection.HomeKey wdStory, wdMove Selection.Find.Font.Underline = wdUnderlineSingle Selection.Find.Execute "" Do Until Selection.Find.Found = False Selection.Font.Underline = wdUnderlineNone Selection.InsertBefore "[" Selection.InsertAfter "]" Selection.MoveRight Selection.Find.Execute "" Loop End Sub Appreciate any help! |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
greenman1889 | Word | 2 | 11-20-2019 03:57 PM |
![]() |
bowlfreak_not | Word | 1 | 07-04-2018 03:36 PM |
![]() |
siam | Word | 1 | 11-02-2017 04:30 AM |
![]() |
MANOHAR | Word VBA | 16 | 01-10-2017 11:48 AM |
Replacing curly braces in a wildcard F&R | Ulodesk | Word | 9 | 02-21-2014 07:28 AM |