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.
Do More in Less Time! Are you ready to harness the full power of Word 2013 to create professional documents? In this comprehensive guide you'll learn the skills and techniques for efficiently building the documents you need for your professional and your personal life. Check out Word 2013 In Depth today!
If your writing often contains words that include numbers, you'll want to make sure you set up the spelling checker to ignore ...Discover More
When you run a spell-check on a document, you may end up seeing other things that need to be edited. Never fear; you can do ...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
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
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.