Word

Print Current Page

Ease of Use

Easy

Version tested with

2000 

Submitted by:

Anne Troy

Description:

Prints the page on which your cursor is currently placed. 

Discussion:

I'll never know why Microsoft doesn't add this button to the toolbar, but you can do this real easy. Just record a macro of yourself printing the current page and add a toolbar button that runs it, or follow these instructions, and add a toolbar button to run it. 

Code:

instructions for use

			

Sub PrintCurr() Application.PrintOut FileName:="", Range:=wdPrintCurrentPage End Sub

How to use:

  1. Copy the code above.
  2. Open Word.
  3. Hit Alt+F11 to open the Visual Basic Editor (VBE).
  4. On the left, double-click "normal" or "normal.dot".
  5. Then, under normal.dot, double-click ThisDocument.
  6. Paste the code into the window that appears at right.
  7. Hit the save diskette and close the VBE window.
  8. Add a toolbar button, using Tools-Customize, that runs the macro. Put it up next to your printer toolbar button if you use it a lot.
 

Test the code:

  1. Even before you add the toolbar button, you should test your code by hitting Tools-Macro-Macros and double-click PrintCurr.
 

Sample File:

No Attachment 

Approved by Anne Troy


This entry has been viewed 127 times.

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