now stage two...

jimmywanna

Board Regular
Joined
Mar 18, 2002
Messages
182
I have two printers, Obviously one is set as default. I need the outcome of my workbook (in my case a label) print on the non-default printer.
Can i record a macro which will select the non default printer?

If i can i will then use the Sub AutoOPen()
to do that as soon as the workbook is opened.

is this possible?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Just recorded this macro on my PC selecting a printer other than my default -

Application.ActivePrinter = "\ukcwdsprtacdtek74003 on Ne01:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
"\ukcwdsprtacdtek74003 on Ne01:", Collate:=True

Seems if you specify what the printer name is in your macro then it should work as you want it to
 
Upvote 0
Sub SwitchPrinter()

Dim strActivePrinter As String

' Get active printer.
strActivePrinter = Application.ActivePrinter

' Change to another printer Application.ActivePrinter = "\NTS1HP5000 on Ne01:"

' Reset printer to original default Application.ActivePrinter = strActivePrinter

End Sub

Pretty much the same code...but I guess you could specify this before running the remainder of the macro...
 
Upvote 0

Forum statistics

Threads
1,214,619
Messages
6,120,550
Members
448,970
Latest member
kennimack

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top