JeanS
08-30-2007, 06:31 AM
Any help will be very much appreciated - coding skills were learned in Excel and are rusty anyway.
I have a letterhead template that has the header, footer and signature block in colour. All three are drawing objects. My ultimate aim is to print one copy of the letter on paper from tray 2 with the drawing objects and then print two copies without the drawing objects onto paper from tray 1. A previous attempt to print the two copies as draft documents has also failled. The reason I want to do this is to save colour toner in our colour laser printer. The code below works as far as the printing from the two different trays is concerned but it seems to ignore the newly added instruction to print without the drawing objects. Any solution that prints the copies without the graphics or (second best) with the graphics in black will suit me.
Sub PrintLetter()
' PrintLetter Macro
' Macro created 21/03/2006 by strettonj
MsgBox "Printing Letter"
With Options
.DefaultTray = "Tray2"
.PrintDrawingObjects = True
End With
Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, Collate:=True, Background:=True, PrintToFile:= _
False, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0
With Options
.DefaultTray = "Tray1"
.PrintDrawingObjects = False
End With
Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
wdPrintDocumentContent, Copies:=2, Pages:="", PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, Collate:=True, Background:=True, PrintToFile:= _
False, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0
Options.PrintDrawingObjects = True
End Sub
I have a letterhead template that has the header, footer and signature block in colour. All three are drawing objects. My ultimate aim is to print one copy of the letter on paper from tray 2 with the drawing objects and then print two copies without the drawing objects onto paper from tray 1. A previous attempt to print the two copies as draft documents has also failled. The reason I want to do this is to save colour toner in our colour laser printer. The code below works as far as the printing from the two different trays is concerned but it seems to ignore the newly added instruction to print without the drawing objects. Any solution that prints the copies without the graphics or (second best) with the graphics in black will suit me.
Sub PrintLetter()
' PrintLetter Macro
' Macro created 21/03/2006 by strettonj
MsgBox "Printing Letter"
With Options
.DefaultTray = "Tray2"
.PrintDrawingObjects = True
End With
Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, Collate:=True, Background:=True, PrintToFile:= _
False, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0
With Options
.DefaultTray = "Tray1"
.PrintDrawingObjects = False
End With
Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
wdPrintDocumentContent, Copies:=2, Pages:="", PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, Collate:=True, Background:=True, PrintToFile:= _
False, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0
Options.PrintDrawingObjects = True
End Sub