Note that there are some explanatory texts on larger screens.

plurals
  1. POPrinting from Different Trays on a Duplex Printer (Word 2003)
    primarykey
    data
    text
    <p>I am making a macro which prints page 1 From one tray which has headed paper and all other pages from another tray.</p> <p>This works fine apart from the printer duplex's it, so it comes out back to front and upside down.</p> <p>Is there a way to make it not come upside and possible rotate everything on the page by 180 degrees ? </p> <p>Or disable duplexing using <code>acPRDPSimplex</code> </p> <p>Here is the code:</p> <pre><code>Sub PrintHeaded() findprinter Dim VNumberofPages As Integer ActiveDocument.Repaginate VNumberofPages = ActiveDocument.BuiltInDocumentProperties(wdPropertyPages) If VNumberofPages = 1 Then vprintrange = "1" ActiveDocument.PageSetup.FirstPageTray = LetterHeadTray Else: vprintrange = "1,2" ActiveDocument.PageSetup.FirstPageTray = LetterHeadTray End If Application.PrintOut FileName:="", Range:=wdPrintRangeOfPages, Item:= _ wdPrintDocumentContent, Copies:=1, Pages:=vprintrange, PageType:= _ wdPrintAllPages, ManualDuplexPrint:=False, Collate:=True, Background:= _ True, PrintToFile:=False, PrintZoomColumn:=0, PrintZoomRow:=0, _ PrintZoomPaperWidth:=0, PrintZoomPaperHeight:=0, OutputFileName:="", _ Append:=False If VNumberofPages &gt; 2 Then vprintrange = "1 - " &amp; VNumberofPages With ActiveDocument.PageSetup .FirstPageTray = LetterHeadTray .OtherPagesTray = PlainPaperTray End With Application.PrintOut FileName:="", Range:=wdPrintRangeOfPages, Item:= _ wdPrintDocumentContent, Copies:=1, Pages:=vprintrange, PageType:= _ wdPrintAllPages, ManualDuplexPrint:=False, Collate:=True, Background:= _ True, PrintToFile:=False, PrintZoomColumn:=0, PrintZoomRow:=0, _ PrintZoomPaperWidth:=0, PrintZoomPaperHeight:=0, OutputFileName:="", _ Append:=False End If </code></pre> <p>End Sub</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload