Printing to Local Printer and the not the default printer.

  • Thread starter Thread starter ianmacinnis
  • Start date Start date
I

ianmacinnis

Can someone help me in the code of sending my sheet to a local printer
and not the default printer which is our network printer. Users need
to send to the local printer, but the network is their default and we
don't want them making changes to their default printer.

Thanks
 
Can someone help me in the code of sending my sheet to a local printer
and not the default printer which is our network printer. Users need
to send to the local printer, but the network is their default and we
don't want them making changes to their default printer.

Thanks

Sub your_printing
Dim defPrinter As String
defPrinter = Application.ActivePrinter
Application.ActivePrinter = "YOUR_LOCAL_PRINTER" '- this is a name of
your local printer
'Your source for printing
'....
'....
Application.ActivePrinter = defPrinter
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

Back
Top