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:

  1. Copy the code above.
  2. Open Word, and hit Alt+F11 to open the Visual Basic Editor (VBE).
  3. Double-click Normal on the left-hand side.
  4. Choose Insert-Module and paste the code into the window that appears at right.
  5. Hit the Save diskette to save the macro in your normal.dot template.
  6. Close the VBE.
 

Test the code:

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

Please read our Legal Information and Privacy Policy
Copyright @2004 - 2020 VBA Express