Det er næsten snyd at jeg bruger det her som svar, men jeg gør det alligevel :)
Du kan bruge denne makro der henter ordene der skal farves fra en liste:
Sub search_and_replace()
Dim myword
Open ThisDocument.Path & "\words.txt" For Input As #1
With Selection
.HomeKey Unit:=wdStory
With .Find
.ClearFormatting
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Font.Color = wdColorAutomatic
With .Replacement
.ClearFormatting
.Font.Color = RGB(255, 0, 0) '***changing to specific color?
End With
Do Until EOF(1)
Line Input #1, myword
myword = Split(myword, vbTab)
If UBound(myword) = 1 Then
.Text = myword(0)
.Replacement.Text = myword(1)
.Execute Replace:=wdReplaceAll
End If
Loop
End With
End With
Close #1
End Sub
det er tyvstjålet fra
http://www.experts-exchange.com/Microsoft/Applications/Q_24011688.html