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?
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?