Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default printing to multiple printers

i want to print the same Activesheet to two different printers on our network
but am unable to figure out the code. please help if this is possible
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default printing to multiple printers

You would use Appliction.ActivePrinter to designate where the printout goes.

You can manually select a printer. then go to the vbe and the immediate
window and do

? application.ActivePrinter <cr

then go back and change to the other printer and repeat the immediate window
query.

This will give you the strings you need to provide to the activeprinter

then construct a macro that does the printing and assigning.

--
Regards,
Tom Ogilvy


"gkm107" wrote in message
...
i want to print the same Activesheet to two different printers on our

network
but am unable to figure out the code. please help if this is possible



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default printing to multiple printers

gkm107 wrote:
i want to print the same Activesheet to two different printers on our network
but am unable to figure out the code. please help if this is possible


Dear gkm107,

This is so easy you'll laugh.

First, a sample from my own computer:

Sub PrintToBothPrinters()
Application.ActivePrinter = "PaperPort Black & White Image on Ne01:"
ActiveWindow.SelectedSheets.PrintOut

Application.ActivePrinter = "NEC SuperScript 870 on LPT1:"
ActiveWindow.SelectedSheets.PrintOut
End Sub


The best thing is probably to record yourself switching and printing to
each printer. Look for the lines that reference the name of the printer,
using the code from above as an example. Since recording the macro will
create a code module automatically, all you'll need to do then is to
delete the huge amount of extraneous code that your recording will
generate, and end up with four lines similar to above. You can then
assign the macro to a button, or just run it from the Tools/Macro menu.

If you experience some screen flicker or flashing as it changes
printers, add the two extra lines:

Sub PrintToBothPrinters()
Application.ScreenUpdating = False
Application.ActivePrinter = "PaperPort Black & White Image on Ne01:"
ActiveWindow.SelectedSheets.PrintOut

Application.ActivePrinter = "NEC SuperScript 870 on LPT1:"
ActiveWindow.SelectedSheets.PrintOut
Application.ScreenUpdating = True
End Sub

Good Luck!
Mark
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing EXCEL tables with sophisticated HP Printers such as the D VAUTOUR 110 Excel Discussion (Misc queries) 1 June 3rd 09 09:58 PM
Changed printers and now Pictures float when printing. Markman Excel Discussion (Misc queries) 0 April 3rd 09 02:37 PM
Excel 2007 Margins Cut Off Printing to Non-Physical Printers CEK Excel Discussion (Misc queries) 0 March 13th 08 03:46 PM
Printing on different printers (makes/models etc) Chuckee Excel Discussion (Misc queries) 1 February 23rd 07 03:52 PM
formating issues when printing using different printers Andres Setting up and Configuration of Excel 1 May 26th 05 01:46 PM


All times are GMT +1. The time now is 04:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"