How do I programatically turn off the wavy red lines in a Microsoft Word document via VBA?

0 votes
asked Sep 29, 2010 by geneq

Is there anyway to disable spell checking on a per document basis via VBA for MS Word?

2 Answers

0 votes
answered Sep 29, 2010 by dirk-vollmar

You can mark the current document as already spell-checked:

ActiveDocument.SpellingChecked = True

or you can disable spell checking for a range of text:

ActiveDocument.Range.NoProofing = True

You can also simply disable the display of the red squiggles:

ActiveDocument.ShowSpellingErrors = False

Note that the same things can be done for grammar-checking (green squiggles); e.g.:

ActiveDocument.GrammarChecked = True

will mark the current document as already grammar-checked, thus effectively disabling it.

0 votes
answered Sep 29, 2010 by lunatik
ActiveDocument.ShowSpellingErrors = False
Welcome to Q&A, where you can ask questions and receive answers from other members of the community.
Website Online Counter