Print Macro

N

Neil - Toe

Hi, I copied a macro to print. Easy stuff, but how can I
specify which printer to use in the macro? I cannot make
the printer I want the default printer.
Here is the vba from the print side.

Application.PrintOut FileName:="",
Range:=wdPrintAllDocument, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="",
PageType:=wdPrintAllPages, _
Collate:=True, Background:=True,
PrintToFile:=False, PrintZoomColumn:=0, _
PrintZoomRow:=0, PrintZoomPaperWidth:=0,
PrintZoomPaperHeight:=0

Any suggestions? My printer that I want to use is named
PDF995. The only way I can use the macro is to first
select the printer then use the macro.
Thank you
Neil
 
A

Art®

This is what works for me:

ActivePrinter = "HP LaserJet 1200 Series PCL 6"

Just change the name of the printer that is between the quotation marks to
the printer you want to print on.

Art
 
J

Jonathan West

Art® said:
This is what works for me:

ActivePrinter = "HP LaserJet 1200 Series PCL 6"

Just change the name of the printer that is between the quotation marks to
the printer you want to print on.

Yes, but that changes the system default printer.
 

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