Why re-invent the wheel when all you have to do is set tools >options >
spelling & grammar - check spelling as you type for Word to do what the
option says? But if you insist
Sub AutoClose()
ActiveDocument.CheckSpelling
End Sub
will do the trick
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
Sorry, I probably wasn't clear enough. I want to do more than just spell
check as I type, and I do have those options set in Tools already. I need to
write this macro for someone who doesn't see the squiggly lines and who never
remembers to click spell check before they close a document. They are very
used to Outlook where, when they click Send, the document is automatically
spell checked before sending.
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.