Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Print First Page of Each Sheet?

· 5 min read · Home Tech

In this article
  1. Why Print Only the First Page?
  2. Manual Method: Set Print Area for Each Sheet
  3. Using VBA to Automate Printing First Pages
  4. How to Determine the First Page Range Automatically
  5. Common Problems and How to Fix Them
  6. Alternative: Using Print Titles and Page Setup
  7. Comparing Methods
  8. Frequently Asked Questions

This guide explains how to print only the first page of each worksheet in an Excel workbook, covering manual methods, VBA automation, and print area setup. You’ll learn the exact steps for both Windows and Mac versions, plus how to avoid common pitfalls like blank pages or cut-off columns.

Why Print Only the First Page?

Printing the first page of every sheet is useful when you have a large workbook with summary data, dashboards, or reports where each sheet’s first page contains the key information. Instead of printing dozens of pages, you can quickly produce a compact overview. This is common for monthly reports, project status sheets, or financial summaries where each tab represents a different department or month.

Manual Method: Set Print Area for Each Sheet

The most straightforward approach is to set a print area on each sheet that only includes the first page’s content. Here’s how:

  1. Go to the first sheet you want to print.
  2. Select the range of cells that appear on the first page (you can check this by going to View > Page Break Preview).
  3. Go to Page Layout > Print Area > Set Print Area.
  4. Repeat for each sheet.
  5. When printing, choose “Active Sheet(s)” or select all sheets (right-click a sheet tab > Select All Sheets) and print.

This works well for a small number of sheets, but if you have many tabs, doing it manually is time-consuming and error-prone.

Using VBA to Automate Printing First Pages

For a large workbook, a simple VBA macro can loop through each sheet, set the print area to the first page, and print. Here’s a basic macro:

Sub PrintFirstPageOfEachSheet()
    Dim ws As Worksheet
    For Each ws In ThisWorkbook.Worksheets
        ' Set print area to first page (assuming first page is rows 1 to X)
        ' You need to determine the last row of the first page manually or via calculation.
        ' Example: ws.PageSetup.PrintArea = "$A$1:$H$50"
        ws.PrintOut From:=1, To:=1
    Next ws
End Sub

However, the macro above prints the first page of each sheet without changing the print area. If your sheets have different first-page extents, you’ll need to adjust the print area per sheet. A more robust approach is to use the PageSetup.PrintArea property with a dynamic range based on the used range and page setup.

How to Determine the First Page Range Automatically

Excel doesn’t expose a direct “first page range” property, but you can estimate it by looking at the page setup’s scaling and paper size. A simpler method is to use the “Print Titles” or “Set Print Area” manually, but for automation, you can use the following logic:

  • Use ActiveSheet.PageSetup.PrintArea to define a range.
  • To find the last row that fits on the first page, you can use the HPageBreaks collection. The first horizontal page break (if any) indicates the last row of page 1.
  • If there is no horizontal page break, the entire sheet fits on one page.

Here’s an example macro that sets the print area to the first page based on page breaks:

Sub SetPrintAreaToFirstPage()
    Dim ws As Worksheet
    Dim lastRow As Long
    Dim firstPageRange As String
    For Each ws In ThisWorkbook.Worksheets
        ' Clear existing print area
        ws.PageSetup.PrintArea = ""
        ' Force page breaks to update
        ws.Calculate
        ' If there are horizontal page breaks, use the first one
        If ws.HPageBreaks.Count > 0 Then
            lastRow = ws.HPageBreaks(1).Location.Row - 1
        Else
            ' No page break, so entire sheet is one page
            lastRow = ws.Cells.Find(What:="*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
        End If
        ' Set print area from A1 to the last column used
        Dim lastCol As Long
        lastCol = ws.Cells.Find(What:="*", SearchOrder:=xlByColumns, SearchDirection:=xlPrevious).Column
        firstPageRange = ws.Cells(1, 1).Address & ":" & ws.Cells(lastRow, lastCol).Address
        ws.PageSetup.PrintArea = firstPageRange
    Next ws
End Sub

This macro sets the print area to the first page for each sheet. Then you can print all sheets at once.

Common Problems and How to Fix Them

  • Blank first page: If a sheet has no data, Excel may print a blank page. Check that the used range is correct and consider skipping empty sheets in your macro.
  • Columns cut off: If the first page doesn’t include all columns you want, adjust the print area to include the necessary columns, or change the page orientation to landscape.
  • Page breaks not updating: Page breaks depend on the current printer driver and paper size. Make sure you’ve set the correct paper size and scaling (e.g., “Fit to 1 page wide”) before running the macro.
  • Macro security: Excel may block macros. Save the file as a macro-enabled workbook (.xlsm) and enable macros when opening.

Alternative: Using Print Titles and Page Setup

If you don’t want to use VBA, you can manually adjust each sheet’s print area and then print all sheets. Another alternative is to create a “summary” sheet that references the first page of each sheet using formulas or linked cells, but that requires manual setup. For one-off printing, the manual method is sufficient.

Comparing Methods

  • Manual print area: Best for a few sheets, no code needed.
  • VBA macro: Best for many sheets, repeatable, but requires macro knowledge.
  • Third-party tools: Some add-ins offer batch printing features, but they may cost money or have privacy concerns.

Frequently Asked Questions

Can I print the first page of every sheet without changing the print area?

Yes, you can use the PrintOut From:=1, To:=1 method in VBA, which prints only the first page of each sheet, regardless of the print area. However, if the print area is set to something else, it may not print what you expect. It’s safer to set the print area first.

How do I print all sheets with the same first page range?

If all sheets have the same layout, you can group them (click the first sheet, hold Shift, click the last sheet), set the print area once, and print. Grouping applies the same settings to all selected sheets.

Why does my macro skip some sheets?

If a sheet is very hidden (xlSheetVeryHidden), it won’t appear in the Worksheets collection. Use ThisWorkbook.Worksheets which includes visible and hidden sheets, but you may need to check the Visible property to skip hidden ones.

Can I print only the first page of a single sheet?

Yes, go to File > Print, and under Settings, choose “Print Active Sheets” and then in the pages box, enter “1 to 1”. This prints only the first page of the active sheet.

How do I know which rows fit on the first page?

Switch to Page Break Preview (View > Page Break Preview). The area labeled “Page 1” shows what will print on the first page. You can drag the blue dashed line to adjust the page break.

Does this work in Excel for Mac?

Yes, the manual method works the same. For VBA, the macro code is compatible with Excel for Mac, but you may need to enable “Developer” tab and allow macros.