Specifying Paper Trays for Specific Pages in a Single Print Job

Written by Allen Wyatt (last updated October 22, 2022)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, 2021, and Word in Microsoft 365


1

David has a document that contains just under 30 pages. When he prints the document, he would like odd pages to be printed from tray 1 of the printer and even pages to be printed from tray 2. He wonders if there is a way to specify that certain pages should be printed from certain paper trays all within the same print job? (If he performs separate print jobs, then the pages are not in the correct collation. If he can print in a single print job, then they are all collated correctly.)

There is no inherent capability to do this within Word, at least not as David has envisioned. Word allows you to modify how print jobs are handled, with the parameters allowed by your printer driver. For most printer drivers you can specify which paper tray to use for your job. You can also specify whether Word should print even or odd pages. When you combine the two settings, you could specify that even pages be printed from one tray, and then do a second job to specify that odd pages be printed from the other tray.

That is not what David desires, however. He would like a way to print all pages at once and have the pages alternate between two trays. One could envision a similar need where you want every third page or every fifth page to print from a different print tray. Word does not allow this level of control from within the program, however.

Theoretically you could do your printing using a macro. The following example will print alternating pages of your document to two different printer trays:

Sub PrintUsingTwoTrays()
    Dim sUseTrays(1) As String
    Dim sTray As String
    Dim iPgs As Integer
    Dim J As Integer

    ' Set up paper trays to use
    sUseTrays(0) = "Tray 2"    ' Tray for even pages
    sUseTrays(1) = "Tray 1"    ' Tray for odd pages

    ' Get total pages in document
    iPgs = Selection.Information(wdNumberOfPagesInDocument)

    ' Save current tray setting
    sTray = Options.DefaultTray

    For J = 1 To iPgs
        Options.DefaultTray = sUseTrays(J Mod 2)

        ActiveDocument.PrintOut Range:=wdPrintFromTo, _
          From:=Trim(Str(J)), To:=Trim(Str(J))
    Next J

    ' Restore original tray setting
    Options.DefaultTray = sTray
End Sub

The key to using the macro is to make sure that you set the sUseTrays(0) and sUseTrays(1) variables to be the names of your two printer trays. These names may vary from printer driver to printer driver, so if the macro doesn't work for you, you'll want to check the exact names of your paper trays as understood by Word. Do this by displaying the Word Options dialog box, clicking Advanced at the left side of the dialog box, and then scrolling down to the Print section. There you'll see a Default Tray drop-down list that shows all the tray names defined within your printer driver.

You should also note that this approach works great for alternating between two paper trays. If you want to have the macro print to different trays for every 3 or every 5 pages, then you'll need to modify the use of the sUseTrays array and modify how the DefaultTray property is set based on page number.

The macro approach ends up doing a print job for individual pages within your document. Thus, in David's case, if he has a document with 27 pages, then the macro generates 27 print jobs, one for each page in the document. This means that printing using the macro will be slower than if you print a single print job, due to the overhead introduced by Word, Windows, and your printer for each print job. It also means that if you are printing to a shared printer, it is theoretically possible for some else's print job to be handled in the middle of your 27 print jobs.

Note:

If you would like to know how to use the macros described on this page (or on any other page on the WordTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (10372) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, 2021, and Word in Microsoft 365.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Controlling the Bold Text Attribute

When processing a document in a macro, you may need to make some of your text bold. It's easy to do using the Bold ...

Discover More

Setting Cell Color Based on Numeric Values

Excel allows you to specify colors for the interior of cells in your worksheet. If you want those colors to be set ...

Discover More

Strange Characters when Pasting Text from the Web

It is not uncommon to copy information found on the web and then paste that information into a Word document. Do so, ...

Discover More

Discover the Power of Microsoft Office This beginner-friendly guide reveals the expert tips and strategies you need to skyrocket your productivity and use Office 365 like a pro. Mastering software like Word, Excel, and PowerPoint is essential to be more efficient and advance your career. Simple lessons guide you through every step, providing the knowledge you need to get started. Check out Microsoft Office 365 For Beginners today!

More WordTips (ribbon)

Multiple Pages Per Sheet

You can save on paper with your printouts by instructing Word to print multiple pages on a single sheet. In fact, you can ...

Discover More

Specifying a Paper Tray in a Macro

You may want to use a macro to process and then print your document. Part of that printing may involve specifying which ...

Discover More

Easily Changing Print Order

You can change the order in which pages are printed (normal or reversed) using the Print dialog box or the print settings ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is five more than 6?

2023-11-14 07:33:07

Paul Counce

I'm a longtime WordTips lurker. Thanks so much for all you do!This macro is *close* to what I need. I need a similar macro that will print page 1 to one tray, and then all of the remaining pages from 2 on to another tray. I'm just not skilled enough in VBA to figure this out. Plus my workplace would frown on me trying to get too manipulative with the locked-down network.


This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.