Print Current Page

Print Current Page

Post by PAE » Tue, 02 Nov 2004 10:23:01


How can I add an icon to print the current page to the standard toolbar?
 
 
 

Print Current Page

Post by Jay Freedm » Tue, 02 Nov 2004 12:24:49

On Sun, 31 Oct 2004 20:23:01 -0500, "PAE" < XXXX@XXXXX.COM >



Put the following macro into Normal.dot or another global template and
assign a button to it, referring to these articles for instructions:

http://www.yqcomputer.com/
http://www.yqcomputer.com/

Public Sub PrintCurrentPage()
With Dialogs(wdDialogFilePrint)
.Range = wdPrintCurrentPage
.PrintToFile = False
.Execute
End With
End Sub

Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://www.yqcomputer.com/