Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Printing Odd or Even Pages.

Printing Odd or Even Pages

Written by Allen Wyatt (last updated March 29, 2023)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365


1

When printing longer worksheets, you may long for a way to print either odd or even pages. Unfortunately, Excel doesn't include this capability. There are a couple of ways you can work around this problem, however.

First, if your purpose for printing odd and even pages is to print double-sided, you might check out your printer driver to see if it can handle double-sided printing or if it will somehow print just odd or even pages. This approach allows you to bypass Excel altogether.

Another way to bypass Excel is to simply create a PDF file from your output. You can then open the PDF file and use Acrobat or Adobe Reader to print either odd or even pages.

If you want to stay within Excel, then perhaps the best way to handle the situation is to come up with a macro that will handle the printing. Such a macro can be approached in any number of ways. Here's a short one:

Sub PrintOddEven()
    Dim TotalPages As Long
    Dim StartPage As Long
    Dim Page As Integer

    TotalPages = Application.ExecuteExcel4Macro("GET.DOCUMENT(50)")
    StartPage = InputBox("Enter starting page number")

    If StartPage > 0 Then
        For Page = StartPage To TotalPages Step 2
            ActiveSheet.PrintOut From:=Page, To:=Page, _
              Copies:=1, Collate:=True
        Next
    End If
End Sub

When you run the macro, you are asked for a starting page number. In most instances you would enter either 1 or 2, but you could actually enter any page number you want. The macro then prints the starting page and every second page from thereon out.

You could, if desired, also print odd and even pages by creating two custom views in Excel—one for odd pages and one for even pages. All you need to do is specify a non-contiguous range of cells (consisting of the cells in either the odd or even pages) as your print area for each view. For instance, if you wanted to define a print area that consisted of the cells for all the odd pages, you could do this:

  1. Change to Page Break Preview.
  2. Use the mouse to select all the cells of page 1.
  3. Hold down the Ctrl key as you select all the cells of page 3.
  4. In turn, and still holding down the Ctrl key, select all the cells of the other odd-numbered pages.
  5. Define the selected cells as the print area.

With the print area selected, save the view. Then wipe out the print area, use the same technique to select all the even cells, and save the view. You now have two views you can print, and each view will contain only odd or even pages. The only drawback to this approach is that Excel numbers the printed pages sequentially (1, 2, 3, 4) instead of what they really are (1, 3, 5, 7).

Note:

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

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (8845) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Printing Odd or Even Pages.

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

Concatenating Names with Delimiters

Need to come up with a formula for combining lots of text from various cells? Here's a full discussion on how you can do ...

Discover More

Protecting Excel Files from Word

Office easily allows you to use Word to open an Excel document. Doing so, however, can quickly result in and unusable ...

Discover More

Disappearing Footnotes

Footnotes can be an integral part of many documents, particularly those written for a scholarly audience. If those ...

Discover More

Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!

More ExcelTips (ribbon)

Setting Print Titles

Excel allows you to specify certain rows or columns that will be repeated on the pages of a printout. Here's how to set ...

Discover More

Showing Print Preview for the Current Page

The Print Preview feature in Excel can be quite helpful. You might think it would be more helpful, though, if it ...

Discover More

Printing an Entire Workbook by Default

Need to print an entire workbook? It's as easy as adding a single line of code to your macros.

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, 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 8 - 5?

2019-06-05 17:49:33

Dennis Costello

I wonder if, when printing to a "corporate print queue", this macro would lead to a separate print job (each with header/flag and maybe trailer pages). At first inspection, it seems likely that it would - that is, it seems like each invocation of the <worksheet>.PrintOut action would lead to a separate Windows print job.


This Site

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

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, 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.