K
kurt
I've looked on line at several places and then put the following code into a
word macro. It doesn't switch trays based on the active printer. Can
someone please help?
Thanks!
Kurt
Sub testprint()
If ActivePrinter = "\\FS01\HelpDesk-HP4000" Then
With ActiveDocument.PageSetup
.FirstPageTray = 260
.OtherPagesTray = 261
End With
ElseIf ActivePrinter = "\\Fs01\9st3_HP4300" Then
With ActiveDocument.PageSetup
.FirstPageTray = wdPrinterLowerBin
.OtherPagesTray = wdPrinterUpperBin
End With
Else
With ActiveDocument.PageSetup
.FirstPageTray = 0
.OtherPagesTray = 0
End With
End If
End Sub
*************************************************
I've also tried the Case scenerio, which also doesn't work either:
Select Case Application.ActivePrinter
Case "\\FS01\HelpDesk-HP4000"
With ActiveDocument.PageSetup
.FirstPageTray = 260
.OtherPagesTray = 261
End With
Case "\\Fs01\9st3_HP4300"
With ActiveDocument.PageSetup
.FirstPageTray = wdPrinterLowerBin
.OtherPagesTray = wdPrinterUpperBin
End With
Case Else
With ActiveDocument.PageSetup
.FirstPageTray = 0
.OtherPagesTray = 0
End With
End Select
word macro. It doesn't switch trays based on the active printer. Can
someone please help?
Thanks!
Kurt
Sub testprint()
If ActivePrinter = "\\FS01\HelpDesk-HP4000" Then
With ActiveDocument.PageSetup
.FirstPageTray = 260
.OtherPagesTray = 261
End With
ElseIf ActivePrinter = "\\Fs01\9st3_HP4300" Then
With ActiveDocument.PageSetup
.FirstPageTray = wdPrinterLowerBin
.OtherPagesTray = wdPrinterUpperBin
End With
Else
With ActiveDocument.PageSetup
.FirstPageTray = 0
.OtherPagesTray = 0
End With
End If
End Sub
*************************************************
I've also tried the Case scenerio, which also doesn't work either:
Select Case Application.ActivePrinter
Case "\\FS01\HelpDesk-HP4000"
With ActiveDocument.PageSetup
.FirstPageTray = 260
.OtherPagesTray = 261
End With
Case "\\Fs01\9st3_HP4300"
With ActiveDocument.PageSetup
.FirstPageTray = wdPrinterLowerBin
.OtherPagesTray = wdPrinterUpperBin
End With
Case Else
With ActiveDocument.PageSetup
.FirstPageTray = 0
.OtherPagesTray = 0
End With
End Select