justneedtoprint
New Member
- Joined
- Jul 2, 2019
- Messages
- 4
I have no coding experience, but hoping this is a really easy fix. Here's what I'd like to do:
Print worksheet from multiple printer trays at once (network printer). Right now, I have to hit "print", then do it again, but change the output tray. I print from 4 different trays every time I need to print. I tried recording a macro, but it won't record that I'm changing printer trays on the network printer.
No cell range or anything needed. Just need to print the same workbook out of 4 different printer trays, so I have multiple copies on different colored paper. The below VB works for me in MS Word, but I'm getting a "Runtime Error 424: Object Required" error every time I try and run it in Excel. Any help is greatly appreciated.
Sub PrintTwoTrays()
Dim sTray As String
sTray = Options.DefaultTray
Options.DefaultTray = "Tray 1"
Application.PrintOut FileName:=""
Options.DefaultTray = "Tray 2"
Application.PrintOut FileName:=""
Options.DefaultTray = sTray
End Sub
Print worksheet from multiple printer trays at once (network printer). Right now, I have to hit "print", then do it again, but change the output tray. I print from 4 different trays every time I need to print. I tried recording a macro, but it won't record that I'm changing printer trays on the network printer.
No cell range or anything needed. Just need to print the same workbook out of 4 different printer trays, so I have multiple copies on different colored paper. The below VB works for me in MS Word, but I'm getting a "Runtime Error 424: Object Required" error every time I try and run it in Excel. Any help is greatly appreciated.
Sub PrintTwoTrays()
Dim sTray As String
sTray = Options.DefaultTray
Options.DefaultTray = "Tray 1"
Application.PrintOut FileName:=""
Options.DefaultTray = "Tray 2"
Application.PrintOut FileName:=""
Options.DefaultTray = sTray
End Sub