Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Printing Limited Pages from a Range of Worksheets.

Printing Limited Pages from a Range of Worksheets

Written by Allen Wyatt (last updated September 25, 2021)
This tip applies to Excel 97, 2000, 2002, and 2003


Ian puts together Excel workbooks that typically contain, at minimum, 30 worksheets. Each worksheet, if printed, requires a minimum of eight pages. Ian often updates data in each worksheet that would appear on the first two printed pages of those worksheets. When it comes time to print, Ian would like a way to print just the first two pages of each worksheet.

When you select a range of worksheets and then choose to print, those worksheets are considered by Excel to be a single, contiguous print job. So, for instance, if you selected 20 worksheets and each worksheet required eight pages, that would not be treated by Excel as 20 individual print jobs of eight pages each, but as a single 160-page print job.

Theoretically you could specify, in the Print dialog box, that you wanted to print pages 1, 2, 9, 10, 17, 18, etc., but this is prone to error and quite tedious. It gets even more difficult if the worksheets being printed consist of varying numbers of pages.

The best solution is to write a macro that will do the printing for you. The macro can step through however many worksheets you've selected and print only the first two pages of each of those worksheets. The following macro implements this technique:

Sub PrintTwoPages()
    Dim sht As Variant

    For Each sht In ActiveWindow.SelectedSheets
        sht.PrintOut From:=1, To:=2, Preview:=True
    Next
    Set sht = Nothing
End Sub

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (3279) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Printing Limited Pages from a Range of Worksheets.

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

Using Slashed Zeroes

To reduce the chances of confusion in presenting data, some people like to use zeroes with slashes through them. If you ...

Discover More

Counting Cells with Specific Characters

Excel is used by many people to hold all sorts of data, not just numbers. If you have cells that include meaningful ...

Discover More

Jumping to the Ends of Table Columns

Need a quick shortcut to jump to the top or bottom of a table column? Here's the two shortcuts you are searching for.

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More ExcelTips (menu)

Protecting Print Settings

Need to have your print settings always be a certain way? Tired of resetting the settings after others use the workbook ...

Discover More

Out of Kilter Borders

Borders not printing properly? It could be any one of a number of reasons causing the problem. This tip provides some ...

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?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon 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.