SpellingChecked Doesn’t Check Spelling

G

George Lee

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top