by Allen Wyatt
(last updated April 12, 2014)
Word includes a power spellchecker that allows you to determine which words in a document need your attention. Sometimes, it might be helpful to have all the misspelled words in one place, rather than throughout the document. If you have this need, the following VBA macro will gather all the misspelled words from one document and place them in a new document.
Sub GetSpellingErrors() Dim DocThis As Document Dim iErrorCnt As Integer Dim J As Integer Set DocThis = ActiveDocument Documents.Add iErrorCnt = DocThis.SpellingErrors.Count For J = 1 To iErrorCnt Selection.TypeText Text:=DocThis.SpellingErrors(J) Selection.TypeParagraph Next J End Sub
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (1465) applies to Microsoft Word 97, 2000, 2002, and 2003.
Learning Made Easy! Quickly teach yourself how to format, publish, and share your content using Word 2013. With Step by Step, you set the pace, building and practicing the skills you need, just when you need them! Check out Microsoft Word 2013 Step by Step today!
Are you bothered by the green underlines that Word uses to mark potential grammar errors in your document? You can hide those ...Discover More
If you ever need to check the spelling or grammar of a document from scratch, it can be confusing knowing the proper steps to ...Discover More
Perform a grammar check, and Word displays some statistics that represent an analysis of your words. By writing a macro you ...Discover More
Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.