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

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Iridium

Well-known Member
Joined
Jul 15, 2002
Messages
2,831
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
 

DonkeyOte

MrExcel MVP
Joined
Sep 6, 2002
Messages
9,123
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...
 

Forum statistics

Threads
1,143,615
Messages
5,719,725
Members
422,242
Latest member
hishamkhatri

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
Top