D
Deejay
I've written the following code and I have two problems:
1) It's always sending the stuff to the Oki printer despite the If command
that says if the active printer is the HP printer it should print it there.
2) After the ActivePrinter runs it changes the default printer rather than
simply make one printer active.
Thanks!
Sub LetterheadPrint()
'
' LetterheadPrint Macro
'
'
MyPrinter = ActivePrinter
If MyPrinter <> "HP LaserJet 4 Plus" Then ActivePrinter = "\\server\OKI
C5600" Else ActivePrinter = "HP LaserJet 4 Plus"
With ActiveDocument.PageSetup
.FirstPageTray = wdPrinterManualFeed
.OtherPagesTray = wdPrinterUpperBin
End With
ActiveDocument.PrintOut
With ActiveDocument.PageSetup
.FirstPageTray = wdPrinterUpperBin
.OtherPagesTray = wdPrinterUpperBin
End With
End Sub
1) It's always sending the stuff to the Oki printer despite the If command
that says if the active printer is the HP printer it should print it there.
2) After the ActivePrinter runs it changes the default printer rather than
simply make one printer active.
Thanks!
Sub LetterheadPrint()
'
' LetterheadPrint Macro
'
'
MyPrinter = ActivePrinter
If MyPrinter <> "HP LaserJet 4 Plus" Then ActivePrinter = "\\server\OKI
C5600" Else ActivePrinter = "HP LaserJet 4 Plus"
With ActiveDocument.PageSetup
.FirstPageTray = wdPrinterManualFeed
.OtherPagesTray = wdPrinterUpperBin
End With
ActiveDocument.PrintOut
With ActiveDocument.PageSetup
.FirstPageTray = wdPrinterUpperBin
.OtherPagesTray = wdPrinterUpperBin
End With
End Sub