Selection.Find.ClearFormatting Selection.Find.Highlight = True Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = "." .Replacement.Text = "/" .Forward = True .Wrap = wdFindContinue .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute Replace:=wdReplaceAll
Dim rngTemp As Range Set rngTemp = ActiveDocument.Range(Start:=0, End:=0) With rngTemp.Find .ClearFormatting .Highlight = True With .Replacement .ClearFormatting .Highlight = False End With .Execute Replace:=wdReplaceAll, Forward:=True, FindText:="", _ ReplaceWith:="", Format:=True End With
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)