Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is it possible via code to print to a certain printer?
The relevant printer is on a network Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi John
With VBA you can change the ActivePrinter and print the sheet. And set it back to your default You can change the ActivePrinter to the printer you want like this 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 you 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 also at Printout in the VBA help You can fill in the name of the printer in the arguments -- Regards Ron de Bruin http://www.rondebruin.nl "John" wrote in message ... Is it possible via code to print to a certain printer? The relevant printer is on a network Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Ron, helpful as always
"Ron de Bruin" wrote in message ... Hi John With VBA you can change the ActivePrinter and print the sheet. And set it back to your default You can change the ActivePrinter to the printer you want like this 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 you 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 also at Printout in the VBA help You can fill in the name of the printer in the arguments -- Regards Ron de Bruin http://www.rondebruin.nl "John" wrote in message ... Is it possible via code to print to a certain printer? The relevant printer is on a network Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Print to Excel instead of Printer? | Excel Discussion (Misc queries) | |||
Unable to Print to Printer | Excel Discussion (Misc queries) | |||
members on my network printer not able to print to default printer | Excel Discussion (Misc queries) | |||
I cannot get my printer to print any information | New Users to Excel | |||
how can I get my printer to print in grayscale ? | Excel Discussion (Misc queries) |