Turn Off SpellChecking features

J

JonWayn

I have a solution that opens a document in word, navigates the paragraphs,
which could be as many as thousands, and create records for an access table.
The problem I soetimes experience is a message triggered by Word that says
something to the effect: There are too many spelling errors for word to
highlight ....

This document has tons of expressions that are not meant to be spell-checked
and would always fail spellchecking. I could be wrong, but my guess is that ,
if I could somehow turn spell-checking off, that would be the end of this
message being triggered. If I am right, does anyone here know how to turn
spellchecking off?

Otherwise, anyone knows why I get this error message?

Thanks
 
J

Jay Freedman

You need to mark the text with the formatting "do not check spelling
or grammar". To do this without automation, you can select the entire
document, go to Tools > Language > Set Language, and check the
corresponding box. To automate it, I'd need to know what your
"solution" is and whether it can communicate with Word VBA through
COM.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 
J

JonWayn

Well, the solution is written in Access and references the Word object model
- if that answers your question. I am not quite sure I know what you mean by
"need to know what your solution is". Please clarify

It can not be done manually. This is a routine that is going to be run daily.
 
J

JonWayn

Well, how do I mark the document text with such a formatting through
automation in Word VBA?
 
R

Russ

ActiveDocument.Content.NoProofing = True

Or however your automation refers to that document.
I.e.

Dim adoc As Word.Document
Set adoc = ActiveDocument
Adoc.Range.NoProofing = True
 
J

JonWayn

Thanks for your reply. I haven't tried it yet, but I'll post more on the
issue if it doesnt work. I had ran into the ShowSpellingErrors property while
I was waiting for a reply. Since turning that off, I have not had the
problem, which only randomly occurs anyway. Adding this new suggestion wont
hurt anything I suppose.

Thanks again
 

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