Hi All: Trying to find a macro for Word to apply brackets around underline text and remove underline. Also need to apply braces around string of strikethrough text.
Text like this should look [like this].
Text like this (strikethrough) should look {like this}. (keeping strikethrough)
This code works for the underlined text, but 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 SubAppreciate any help!