![]() |
|
#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! |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Hyperlink text automatically generated too long and has braces { }
|
greenman1889 | Word | 2 | 11-20-2019 03:57 PM |
Superscript directly above strikethrough
|
bowlfreak_not | Word | 1 | 07-04-2018 03:36 PM |
Edit an existing word document - red strikethrough when deleting
|
siam | Word | 1 | 11-02-2017 04:30 AM |
Spaces inside Fieldcode curly braces
|
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 |