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

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
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,956
Messages
6,122,465
Members
449,085
Latest member
ExcelError

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