Code: Select all
Sub MultiReplace()
Dim RngFind As Range
Dim RngTxt As Range
Dim i As Long
Dim StrOld() As Variant: StrOld = Array("RDR", "MNGT", "FID")
Dim StrNew() As Variant: StrNew = Array("RADAR", "MANAGEMENT", "FOUND ID")
Selection.HomeKey Unit:=wdStory
Set RngTxt = Selection.Range
For i = 0 To UBound(StrOld)
Set RngFind = RngTxt.Duplicate
With RngFind.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = StrOld(i)
.Replacement.Text = StrNew(i)
.Format = False
.MatchWholeWord = True
.MatchAllWordForms = False
.MatchWildcards = False
.Execute Replace:=wdReplaceAll
End With
Next
Set RngFind = Nothing: Set RngTxt = Nothing
End Sub