pas926 said:
I have a user who is always accidentally pressing print
when all he wants is the current page. Is there any way
to make current page the default for the toolbar icon.
Any help is appreciated. Thanks in advance. Paul
Hi, Paul,
You can put the following macro into a template (Normal.dot or a template
stored in Word's Startup folder), remove the standard Print button, and make
a new button with the same picture to point to the macro.
Sub PrintCurrentPage()
With Dialogs(wdDialogFilePrint)
.Range = wdPrintCurrentPage
.Show
End With
End Sub
This will bring up the File > Print dialog with the Current Page button
preselected.
If you want the button to print the current page without showing the dialog,
then use this macro instead:
Sub PrintCurrentPage()
ActiveDocument.PrintOut _
Range:=wdPrintCurrentPage, _
Background:=True
End Sub
For info about storing macros and making buttons, see
http://www.mvps.org/word/FAQs/MacrosVBA/CreateAMacro.htm
http://www.mvps.org/word/FAQs/Customization/AsgnCmdOrMacroToToolbar.htm