How do I set up a Spell Check On Close Macro?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to set up a Macro that will spellcheck a document when closing,
similiar to Outlook does when sending a message.
 
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

My web site www.gmayor.com

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

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

Similar Threads


Back
Top