Code Snippets
Highlight any misspelled words, so that unrecognized words stand out prominently on a printout
The following macro clears highlighting from all words:
Begins a spelling and grammar check for the document and displays the spelling and grammar dialog box when an error occurs.
Begins a spell check. Once this has been executed the SpellingChecked property is set to true
Any subsequent calls will not work unless this property has been set to False.
The SpellingErrors property returns the ProofReadingErrors collection which contains Range objects that identify the words in the document that are considered to be spelling mistakes.
The ResetIgnoreAll method clears the list of words that were set to be ignored during the previous spell check.
After this method has been executed all previously ignored words are included in the spell check.
The word count is displayed
Toggle the wavy lines
Print Spelling Errors
Performing a spell check can sometimes take a long time so it is advisable to use the status bar.
Word Property
Returns the word or phrase that was looked up by the thesaurus. Read-only String.
This example returns a list of synonyms for the first meaning of the third word in the active document.
This example checks to make sure that the word or phrase that was looked up isn't empty. If it's not, the example returns a list of synonyms for the first meaning of the word or phrase.
© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrevNext