Choose a printer
If you know the name of the printer, you can set this property:
curPrinter= application.ActivePrinter
Application.ActivePrinter = <desired printer
....after printing, reset to original printer
application.ActivePrinter = curPrinter
If you don't know the name of the desired printer, you'd need to enumerate
the printers available(investigate the Windows EnumPrinters API) and offer
users a means of selecting the appropriate printer.
"Alvin Hansen" wrote:
hi!!
I use this
Range("print!a1:n71").PrintOut
And the range be printet thats ok
but how can i make it so i can choose a printer before printing
Best regards
Alvin
|