|
|
|
|
|
|
Word
|
SpellCheck Before Print
|
|
Ease of Use
|
Intermediate
|
Version tested with
|
2000
|
Submitted by:
|
mdmackillop
|
Description:
|
Automatically runs the Spell Checker before printing.
|
Discussion:
|
Help save trees with this wee macro. Because Ctrl+P is normally assigned to Print, you need to (re)assign the Ctrl+P shortcut to run the first macro. Use the first macro listed to simply print after spell checking. Use the second to display the print dialog after spell checking.
|
Code:
|
instructions for use
|
Sub SpellCheckAndPrint()
ActiveDocument.CheckSpelling
ActiveDocument.PrintOut
End Sub
Sub SpellCheckAndDialog()
ActiveDocument.CheckSpelling
Dialogs(wdDialogFilePrint).Show
End Sub
|
How to use:
|
- Copy the code above.
- Open Word, and hit Alt+F11 to open the Visual Basic Editor (VBE).
- Double-click Normal on the left-hand side.
- Choose Insert-Module and paste the code into the window that appears at right.
- Hit the Save diskette to save the macro in your normal.dot template.
- Close the VBE.
|
Test the code:
|
- Print any document using the shortcut key combination Ctrl+P or hit Tools-Macro-Macros and double-click SpellCheckAndPrint.
|
Sample File:
|
spcheckprint.zip 6.34KB
|
Approved by mdmackillop
|
This entry has been viewed 105 times.
|
|