B
Bibble Babble
Hi, I have been trying to figure out for a while how to change a printer to
use Duplex in word, I have got a routine from elsewhere that does it using
the DEVMODE (shiver, that was a lesson in confusion).
I see from the code below that you chan tell word which tray to use in a
macro so I am wondering is there a corresponding setting to use duplex from
vba
Sub MyPrint()
Dim sCurrentPrinter As String
sCurrentPrinter = ActivePrinter
ActivePrinter = "HP LaserJet 4050 Series PS"
With Options
.DefaultTray = "Tray 2"
End With
Application.PrintOut FileName:=""
With Options
.DefaultTray = "Use printer settings"
End With
ActivePrinter = sCurrentPrinter
End Sub
Cheers
use Duplex in word, I have got a routine from elsewhere that does it using
the DEVMODE (shiver, that was a lesson in confusion).
I see from the code below that you chan tell word which tray to use in a
macro so I am wondering is there a corresponding setting to use duplex from
vba
Sub MyPrint()
Dim sCurrentPrinter As String
sCurrentPrinter = ActivePrinter
ActivePrinter = "HP LaserJet 4050 Series PS"
With Options
.DefaultTray = "Tray 2"
End With
Application.PrintOut FileName:=""
With Options
.DefaultTray = "Use printer settings"
End With
ActivePrinter = sCurrentPrinter
End Sub
Cheers