![]() |
#3
|
|||
|
|||
![]()
Dear Paul, thank you for prompt reply.
Somewhere in the Internet I found the following macro. Code:
Sub HighlightRepeatedWords() ' ' HighlightRepeatedWords ' Dim oRng As Word.Range Dim arrWords Dim i As Long arrWords = Array("work", "dialogue", "would like", "first of all") For i = 0 To UBound(arrWords) Set oRng = ActiveDocument.Range With oRng.Find .ClearFormatting .Replacement.ClearFormatting .Text = arrWords(i) .MatchWholeWord = False .Replacement.Highlight = True ' .MatchCase = True .Execute Replace:=wdReplaceAll End With Next End Sub I do not mind if all of the words needed are highlighted by one color. Could you suggest what to do in this case? |
Tags |
highlight cognate words |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiple identities in separate Outlook instances? | brucemc777 | Outlook | 3 | 07-08-2014 10:36 PM |
![]() |
Guloluseus | Project | 3 | 01-31-2014 02:42 PM |
Word 2010 running multiple instances | JBE | Word | 0 | 09-28-2012 06:00 PM |
![]() |
trim | Outlook | 2 | 03-13-2012 11:25 AM |
Text Highlighting in Yellow ??? | mark4man | Publisher | 0 | 12-15-2005 06:46 PM |