View Single Post
 
Old 02-20-2017, 07:27 AM
jeffreybrown jeffreybrown is offline Windows Vista Office 2007
Expert
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

In the end, this macro does exactly as needed...

Thanks to all...

Code:
Sub CleanUpBrakets()
    Application.ScreenUpdating = False
    With ActiveDocument.Range.Find
        .ClearFormatting
        .Replacement.ClearFormatting
        .Forward = True
        .Wrap = wdFindContinue
        .Format = False
        .MatchAllWordForms = False
        .MatchSoundsLike = False
        .MatchWildcards = False
        .text = "]^w["
        .Replacement.text = "]^l["
        .Execute Replace:=wdReplaceAll
        .text = "^w["
        .Replacement.text = "^l["
        .Execute Replace:=wdReplaceAll
    End With
    Application.ScreenUpdating = True
End Sub
Reply With Quote