Multiple Print Buttons Possible?

T

Talal Itani

Dear Friends,

Is it possible to place multiple print buttons on the toolbar, and program
them differently? For example, I would like one button to print to the
laser printer, another button to print to the inkjet printer. I have MS
Word 2003. Thank you.

Talal Itani
 
L

LH

Dear Friends,

Is it possible to place multiple print buttons on the toolbar, and program
them differently? For example, I would like one button to print to the
laser printer, another button to print to the inkjet printer. I have MS
Word 2003. Thank you.

Talal Itani

You need to write two macros, each will specify which printer you will
use. You can create toolbar buttons and include the typical printer
icon, although I would slightly alter the icon so it is clear which
printer is which.

Here is some code to get you started -- you will have to make some
alteration. Caution, this is not my macro, I believe I got this from
someone on Woody's Office Forums

ub PrintToLaserPrinter
Dim CurrentPrinter as string
Dim PrinterName as string
PrinterName = "HP Whatever LaserJet" '<--change this line as
needed
CurrentPrinter = ActivePrinter
If PrinterName <> "" Then
With Dialogs(wdDialogFilePrintSetup)
.Printer = PrinterName
.DoNotSetAsSysDefault = True
.Execute
End With
ActivePrinter = CurrentPrinter
End If
ActiveDocument.PrintOut
end sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top