A family of Microsoft word processing software products for creating web, email, and print documents.
If you want to set the color of the replaced words to red, change
.Font.Color = wdColorRed
to
.Replacement.Font.Color = wdColorRed
Similarly, if you want to set the font size of the replaced words to 14, change
.Font.Size = 14.5
to
.Replacement.Font.Size = 14.5
Here is a slightly streamlined version:
Sub Track_Name()
Dim rng As Range
Dim FindArray
Dim ReplArray
Dim i As Long
FindArray = Array("ELLE", "AWAS", "HAWE", "ASCO", "HAST", "PUKE", "NEWP", "RICC", _
"AWAP", "PHAR", "WAVE", "ROTO", "TAUR", "TREN", "WHAN", "RICS", "TERA", _
"OAMU", "TAUP", "WOOD", "RIVE", "WING", "MATA", "ASHB", "CROM", "OTAK", "TEAR", _
"WING", "CAMS", "WANG", "REEF", "KUMA", "RUAK", "TAUH", "GREY")
ReplArray = Array("ELLERSLIE", "AWAPUNI SYNTHETIC", "HAWERA", "ASCOT PARK", "HASTINGS", "PUKEKOHE", "NEW PLYMOUTH", "RICCARTON", _
"AWAPUNI", "PHAR LAP", "WAVERLEY", "ROTORUA", "TAURANGA", "TRENTHAM", "WHANGANUI", "RICCARTON SYNTHETIC", "TE RAPA", _
"OAMARU", "TAUPO", "WOODVILLE", "RIVERTON", "WINGATUI", "MATAMATA", "ASHBURTON", "CROMWELL", "OTAKI-MAORI", "TE AROHA", _
"WINGATUI", "CAMBRIDGE SYNTHETIC", "WHANGANUI", "REEFTON", "KUMARA", "RUAKAKA", "TAUHERENIKAU", "GREYMOUTH")
Set rng = Selection.Range
With rng.Find
.ClearFormatting
.Replacement.ClearFormatting
.Replacement.Font.Size = 14.5
.Replacement.Font.Color = wdColorRed
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = True
.MatchWholeWord = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
For i = 0 To UBound(FindArray)
.Execute FindText:=FindArray(i), ReplaceWith:=ReplArray(i), Replace:=wdReplaceAll
Next i
End With
End Sub