default printer

  • Thread starter Thread starter solo_razor
  • Start date Start date
S

solo_razor

hello,

does anybody know how to select the default printer installed in
windows as the activeprinter?

application.activeprinter = (defaultprinter)

This must be written in a macro

Regards,
Niek
 
I don't think there is a default printer option

But you can change the activeprinter to the printer you want
Application.ActivePrinter = "hp officejet k series on Ne00:"

To know the names of your pinters
Change to it in the ctrl P dialog (Cancel after choose the printer )
and run this so you know the name

Sub nameprinter()
MsgBox Application.ActivePrinter
End Sub

If you print with code then look at Printout in the VBA help
You can fill in the name of the printer
 
Back
Top