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.
by Allen Wyatt
(last updated December 21, 2013)
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.
Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!
Need a full-page border on your Excel printouts? It's not as easy to get one as you might wish. There are a few ways you can ...Discover More
Tired of wasting paper when you print a worksheet? You can scale Excel's output so that it fits only the number of pages you ...Discover More
When the data on a worksheet occupies more than one printed page, Excel can easily determine where the first page of data is ...Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
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.