Smart Systems for Home

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

Excel Print Each Row on Separate Page: How-To

· 6 min read · Home Tech

In this article
  1. Why Excel Doesn't Do This by Default
  2. Manual Method: Set Print Area Row by Row
  3. Automating with a Simple VBA Macro
  4. Choosing Between Manual and Macro
  5. Common Problems and How to Avoid Them
  6. Alternatives: Export to PDF and Print
  7. Frequently Asked Questions

To print each row of an Excel sheet on its own page, you set the print area to a single row and repeat the process for every row, or use a VBA macro to automate it. This guide explains the manual steps, the macro approach, and the common pitfalls so you can get clean, one-row-per-page output every time.

Why Excel Doesn't Do This by Default

Excel's default print behavior is to paginate based on the paper size, margins, and scale you set. It breaks pages where the content physically runs out of space, not where you logically want a new page. So if you have a table with 50 rows, Excel will print as many rows as fit on each page, often splitting a row across two pages if the row is taller than the remaining space. There is no built-in "one row per page" toggle—you have to tell Excel exactly what to print and how to break the pages.

Manual Method: Set Print Area Row by Row

For a small dataset (say, fewer than 20 rows), you can do it manually without any code:

  1. Select the entire first row of data (including all columns you want to print).
  2. Go to Page Layout → Print Area → Set Print Area.
  3. Go to Page Layout → Page Setup → Page tab, and set Scaling to Fit to: 1 page wide by 1 page tall.
  4. Print that row. Then select the next row, set it as the print area, and print again.

This is tedious for more than a few rows, and it's easy to accidentally leave the previous print area in place. A better manual trick is to insert a page break before each row you want to start on a new page:

  1. Select the row below where you want the break (e.g., row 2 to start each row on a new page).
  2. Go to Page Layout → Breaks → Insert Page Break.
  3. Repeat for every row boundary.

This works but still requires manual setup and can be fragile if you add or delete rows later.

Automating with a Simple VBA Macro

If you have dozens or hundreds of rows, the practical solution is a short VBA macro that loops through each row, sets the print area to that row, and prints (or exports to PDF). Here's a basic version that prints each row to a separate page:

Sub PrintEachRowOnSeparatePage()
    Dim ws As Worksheet
    Dim lastRow As Long
    Dim i As Long
    Set ws = ActiveSheet
    lastRow = ws.Cells(ws.Rows.Count, "A").End(xlUp).Row
    For i = 1 To lastRow
        ws.PageSetup.PrintArea = ws.Rows(i).Address
        ws.PrintOut Copies:=1
    Next i
    ws.PageSetup.PrintArea = ""
End Sub

To use it: press Alt+F11 to open the VBA editor, insert a new module, paste the code, and run it. The macro assumes your data starts in row 1 and that column A has the last row of data. Adjust the column reference if your data is elsewhere.

If you want to save as PDF instead of printing, replace ws.PrintOut Copies:=1 with ws.ExportAsFixedFormat Type:=xlTypePDF, Filename:=... but note that this would create one PDF per row unless you combine them—a more advanced task.

Choosing Between Manual and Macro

Which approach is right for you depends on how often you need this and how many rows you have:

  • Manual print area: Good for a one-off job with a handful of rows. No coding required.
  • Page breaks: Good if you want to preview the breaks and adjust them visually. Still manual.
  • VBA macro: Best for recurring tasks or large datasets. Once set up, it's one click.
  • Power Query / Print to PDF with page breaks: If you're comfortable with Power Query, you can split the table into separate sheets and print each sheet—but that's more setup than the macro.

For most people, the macro is the sweet spot: it's free, doesn't require extra software, and handles any number of rows.

Common Problems and How to Avoid Them

When you try to print one row per page, you'll likely run into a few issues:

  • Row spills onto two pages horizontally: If your row has many columns, it may be too wide for one page. Fix by setting the page orientation to Landscape, reducing margins, or using Fit to 1 page wide in scaling.
  • Row is split vertically across pages: This happens when the row is taller than the page. Ensure you've set the print area to just that row and check that scaling is set to fit to 1 page tall.
  • Blank pages appear: Often caused by leftover print areas or page breaks. Clear all page breaks (Page Layout → Breaks → Reset All Page Breaks) before running the macro.
  • Macro prints the same row twice: This can occur if your data has hidden rows or if the lastRow calculation picks up a blank cell. Use End(xlUp) on a column that always has data.
  • Headers don't repeat: If you want a header row on each page, include it in the print area or set Print Titles to repeat the header row. But note that if you're printing each row separately, you likely want the header only on the first page, so don't set print titles.

Alternatives: Export to PDF and Print

Sometimes you don't need to print directly—you need a PDF with each row on a separate page. You can use the same macro but export to PDF:

Sub ExportEachRowToPDF()
    Dim ws As Worksheet, i As Long, lastRow As Long
    Set ws = ActiveSheet
    lastRow = ws.Cells(ws.Rows.Count, "A").End(xlUp).Row
    For i = 1 To lastRow
        ws.PageSetup.PrintArea = ws.Rows(i).Address
        ws.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
            ThisWorkbook.Path & "\Row" & i & ".pdf"
    Next i
    ws.PageSetup.PrintArea = ""
End Sub

This creates a separate PDF for each row. If you want a single PDF with each row on its own page, you can set the print area to the entire range and insert manual page breaks between every row—again, a macro can do that:

Sub InsertPageBreaksBetweenRows()
    Dim ws As Worksheet, i As Long, lastRow As Long
    Set ws = ActiveSheet
    lastRow = ws.Cells(ws.Rows.Count, "A").End(xlUp).Row
    ws.ResetAllPageBreaks
    For i = 2 To lastRow
        ws.HPageBreaks.Add Before:=ws.Rows(i)
    Next i
End Sub

Then just print or export the whole sheet to PDF. This is often cleaner than the per-row macro because you get one file.

Frequently Asked Questions

Can I do this without VBA?

Yes, for small datasets you can manually set the print area or insert page breaks. For large datasets, the manual approach is impractical—VBA is the only built-in way to automate it without third-party tools.

Why does my row print on two pages horizontally?

Your row has more columns than fit on one page. Change the page orientation to Landscape, reduce margins, or set scaling to Fit to 1 page wide. If the row still overflows, consider printing fewer columns.

How do I print only certain rows on separate pages?

In the macro, change the loop to only include the rows you want (e.g., For i = 1 To 10 or use an If condition to skip rows). Alternatively, filter your data first and then run the macro on the visible rows—but note that End(xlUp) will still count hidden rows, so you'll need to adjust the loop to only process visible cells.

Will the macro work in Excel for Mac?

Yes, VBA is supported in Excel for Mac, but the file must be saved as a macro-enabled workbook (.xlsm). The code is the same, though some dialog boxes may look slightly different.

Can I print each row to a separate PDF page without a macro?

No, Excel doesn't have a built-in "one row per page" PDF export. You can manually insert page breaks and export, but that's still manual. The macro is the only automated way.

What if my data has merged cells or images?

Merged cells can cause unexpected page breaks. Unmerge cells before printing, or be prepared to adjust the macro to handle merged ranges. Images may also cause rows to be taller than expected—check the row height.