Sub HideDVCodes() ' Lorenzo Martinelli - dejavu ' This macro paints and hides DV codes in a 2-column exported file ' or External View file. ' Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find.Replacement.Font .Hidden = True .ColorIndex = wdBrightGreen End With With Selection.Find .Text = "(\{*\})" .Replacement.Text = "\1" .Forward = True .Wrap = wdFindContinue .Format = True .MatchCase = False .MatchWholeWord = False .MatchWildcards = True .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute Replace:=wdReplaceAll End Sub