Z
zSplash
I have created a custom document property ("Tray") to value "green" if I
want my document to print on green paper. I have white paper in my top tray
(wdPrinterLowerBin), and green paper in my lower tray (wdPrinterUpperBin).
So, whenever printing, the code checks for the value of "Tray":
If ActiveDocument.CustomDocumentProperties("Tray").Value = "green" Then
With ActiveDocument.PageSetup
.FirstPageTray = wdPrinterUpperBin
.OtherPagesTray = wdPrinterUpperBin
End With
Else
With ActiveDocument.PageSetup
.FirstPageTray = wdPrinterLowerBin
.OtherPagesTray = wdPrinterLowerBin
End With
End If
Is this reasonable, or is there a better way to do what I'm attempting to
do?
TIA, guys.
want my document to print on green paper. I have white paper in my top tray
(wdPrinterLowerBin), and green paper in my lower tray (wdPrinterUpperBin).
So, whenever printing, the code checks for the value of "Tray":
If ActiveDocument.CustomDocumentProperties("Tray").Value = "green" Then
With ActiveDocument.PageSetup
.FirstPageTray = wdPrinterUpperBin
.OtherPagesTray = wdPrinterUpperBin
End With
Else
With ActiveDocument.PageSetup
.FirstPageTray = wdPrinterLowerBin
.OtherPagesTray = wdPrinterLowerBin
End With
End If
Is this reasonable, or is there a better way to do what I'm attempting to
do?
TIA, guys.