From: George Lee on 9 Apr 2010 16:04 The following code segment is run (which adds a dictionary) and is supposed to recheck the document's spelling. currentDocument.Application.CustomDictionaries.Add FileName:="c:\tempTerms.dic" currentDocument.Application.ResetIgnoreAll currentDocument.SpellingChecked = False However, the code has no affect on the document – that is, it does not get spell checked. Apparently adding a custom dictionary on the fly isn't enough. Going to the Office Icon->Word Options->Proofing->Recheck Document (without changing anything else) does work as does calling CheckSpelling and then manually clicking Options->Dictionaries, and OK (not adding or removing any dictionaries) and immediately when canceling the dialog, the document gets checked. Any ideas?
|
Pages: 1 Prev: Word 2007 Macro - Document Save Location & Update TOC Next: Slow Spell Checking |