Using Multiple printers

Justpotholes

New Member
Joined
Sep 12, 2011
Messages
6
I have a Excel document that I wish to print 2 documents at the same time, one from Worksheet known as " Letter" to Printer 1 ( Canon iP4850), and the other at the same time Worksheet known as "Certificate" to print out to printer 2 (Canon MP620).

I am looking for a macro that will do both in one action as the one printer will have a Cetificate and the other a supporting letter.

I hope someone may have a solution for me

Many thanks in advance.


Peter

:cool:
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
The best way to get the correct printer is to record a macro and print the first sheet then the next that will give you the code as you have to select the printers.

Here is a possible solution.

Are you the only one who will print to these printers, are they on a network.

<font face=Courier New><SPAN style="color:#00007F">Sub</SPAN> print1()<br>Sheets("Letter").PrintOut Copies:=1, ActivePrinter:= _<br>    "Canon iP4850:", collate:=<SPAN style="color:#00007F">True</SPAN><br>Sheets("Certificate").PrintOut Copies:=1, ActivePrinter:= _<br>    "Canon MP620:", collate:=<SPAN style="color:#00007F">True</SPAN><br><br><br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN></FONT>
 
Upvote 0
Good Afternon

The Macro sort of worked but it printed both documents to the iP4800 and not one to each of the printers.

The printers are in a home network, and I am the only one with access to them.

:(

Pete
 
Upvote 0
Pete,

Did you try the record macro? here is code that I have just recorded

Sub Macro2()
'
' Recorded action to printer
'

'
ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,2,,,TRUE,,FALSE)"
Sheets("Sheet1").Select 'Change sheet name
Application.ActivePrinter = "Send To OneNote 2007 on Ne00:" 'Change printer name
ExecuteExcel4Macro _
"PRINT(1,,,1,,,,,,,,2,""Send To OneNote 2007 on Ne00:"",,TRUE,,FALSE)"
End Sub
 
Upvote 0
Sub Print_Cert()
'
' xecuteExcel4Macro "PRINT(1,,,1,,,,,,,,2,,,TRUE,,FALSE)"
Sheets("Letter").Select
Application.ActivePrinter = "Canon iP4800 series XPS:"
ExecuteExcel4Macro _"PRINT(1,,,1,,,,,,,,2,""Canon iP4800 series XPS:"",,TRUE,,FALSE)"

I get a Macro error on the line above

End Sub

 
Upvote 0
You have left an underscore in the second part, and placeda comment on the first Execute and removed the E

Sub Print_Cert()
'
ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,2,,,TRUE,,FALSE)"
Sheets("Letter").Select
Application.ActivePrinter = "Canon iP4800 series XPS:"
ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,2,""Canon iP4800 series XPS:"",,TRUE,,FALSE)"


End Sub
 
Upvote 0
Hi

This error still happening

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Sub Print_Cert()
'
ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,2,,,TRUE,,FALSE)"
Sheets("Letter").Select
' This Line below still gives an error.
Application.ActivePrinter = "Canon iP4800 series XPS:"
ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,2,""Canon iP4800 series XPS:"",,TRUE,,FALSE)"


End Sub

>>>>>>>>>>>>>>>>>>>>


Pete
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,287
Members
452,902
Latest member
Knuddeluff

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