Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default Printing to seperate printer trays...................

I'm not sure if this is possible - we have recently had a network printer
installed with 3 paper trays installed for another purpose entirely.

I was wondering if it would be possible for me to print from each tray
automatically.

I used the macro recorder and because I was manually selecting the trays
form a dropdown box it worked.

The macro recorder code however didn't record the tray selection (see below)
and consequently when running the code it just printed from the main tray.

Is there some code to insert to select the different trays?


Sub print_to_eachtray
'
' print_to_db Macro

Application.ActivePrinter = "Kyocera3900DN - Direct - DB on Ne02:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
"Kyocera3900DN - Direct - DB on Ne02:", Collate:=True
' SELECT TRAY 1
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
' SELECT TRAY 2
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
' SELECT TRAY 3
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

End Sub


Thanks very much

Steve


  #2   Report Post  
Posted to microsoft.public.excel.misc
FxM FxM is offline
external usenet poster
 
Posts: 9
Default Printing to seperate printer trays...................

Hi Steve,

Create 3 printers (one for tray1, 2nd for tray2, ...) and print on a
different printer each time.

@+
FxM


Steve Jones a écrit :
I'm not sure if this is possible - we have recently had a network printer
installed with 3 paper trays installed for another purpose entirely.

I was wondering if it would be possible for me to print from each tray
automatically.

I used the macro recorder and because I was manually selecting the trays
form a dropdown box it worked.

The macro recorder code however didn't record the tray selection (see below)
and consequently when running the code it just printed from the main tray.

Is there some code to insert to select the different trays?


Sub print_to_eachtray
'
' print_to_db Macro

Application.ActivePrinter = "Kyocera3900DN - Direct - DB on Ne02:"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
"Kyocera3900DN - Direct - DB on Ne02:", Collate:=True
' SELECT TRAY 1
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
' SELECT TRAY 2
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
' SELECT TRAY 3
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

End Sub


Thanks very much

Steve


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/printer setup re Excel David Brereton[_2_] Excel Discussion (Misc queries) 0 August 4th 08 01:49 PM
Printing problems deskjet printer NewSysAdmin Excel Discussion (Misc queries) 0 June 19th 07 09:24 PM
Printing with B&W printer edwardpestian Excel Discussion (Misc queries) 1 July 25th 06 04:56 AM
Printing from default printer Susan Excel Discussion (Misc queries) 1 February 1st 06 04:23 PM
Printing all worksheets in a workbook using a duplex printer dott Excel Discussion (Misc queries) 1 November 30th 05 10:20 PM


All times are GMT +1. The time now is 07:57 PM.

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

About Us

"It's about Microsoft Excel"