richiwatts
Technical User
I am trying to create something that works like the spell checker in Word, however, I want to highlight any words that match those in my dictionary, where as word only highlights words that are not.
I have the code that does it but it highlights words wrongly, for example in my dictionary i have the word "added". If the word document I am checking has the word "add" it highlights it as a match. How can I change it so that it only highlights the words that exactly match those in my dictionary? This is what I have at the moment:
.Replacement.Text = "^&" ' <= code for "found text"
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
I have the code that does it but it highlights words wrongly, for example in my dictionary i have the word "added". If the word document I am checking has the word "add" it highlights it as a match. How can I change it so that it only highlights the words that exactly match those in my dictionary? This is what I have at the moment:
.Replacement.Text = "^&" ' <= code for "found text"
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False