NMMI FAQs
(Answer) (Category) NMMI Faq-O-Matic : (Category) Information Systems, Communications, & Technologies : (Category) Computers : (Category) Software : (Category) MS Word :
How do you set up a macro in Word to perform a spelling and grammar check ?
Moderator: compserv@nmmi.edu (inherited from parent)
As a time saver, you can set up a macro to perform both spelling and grammar checks and then finish by saving the document, by following these steps:

To generate the macro, choose Tools, Macro, Macros. When the Macro dialog box opens, name it:

DoIt

then click Create. Now, enter the macro as shown here. Note that Sub DoIt() and End Sub are supplied by Word's Macro utility. You should finish typing the rest.

Sub DoIt()
ActiveDocument.CheckSpelling
ActiveDocument.CheckGrammar
ActiveDocument.Save
End Sub

After you enter the macro, choose File Save Normal to save it to Normal.dot. To make your macro more useful, assign it to a toolbar button. To do this, choose View, Toolbars and click Customize. When the Customize dialog box opens, click the Commands tab. Locate Macros and select it. Now your new macro should appear in the right pane of the dialog box as "Normal.NewMacros.DoIt". Highlight it and drag to the toolbar where you wish it to sit. Back in Customize, click Close to close the dialog box and get it out of the way.

The next time you have a document you wish to check for spelling and grammar, all you have to do is press your toolbar button.


2003-Dec-18 10:29am lamb@nmmi.edu

[Append to This Answer]
2003-Dec-18 10:29am
Previous: (Answer) Can you replace Styles with Find and Replace?
Next: (Answer) Can Word highlight text in a document for me?
This document is: http://faq.nmmi.edu/cgi-bin/fom?file=219
[Search] [Appearance]
This is a Faq-O-Matic 2.719.
This FAQ administered by compserv@nmmi.edu