How to insert and remove page breaks in Excel

The Excel page break option helps you see where page breaks will appear when your worksheet is printed. In this article I'll show you several ways to insert them manually or by condition. You'll also learn how to remove page breaks in Excel 2010 - 2016, where to find the Page Break Preview, hide and show the marking lines.

Page breaks are separators that divide a worksheet into individual pages for printing. In Excel, page break marks are inserted automatically according to the paper size, margin and scale options. If the default settings don't work for you, you can easily insert page breaks in Excel manually. It's really helpful for printing a table with the exact number of pages you want.

In this post, I'll show you how to use the Excel Page Break Preview to easily see the changes you make. Also, you'll see how you can adjust the page breaks in the worksheet before printing, how to remove, hide or show page breaks.

How to insert a page break in Excel manually

If you go to the Print Preview pane and don't like the way your Excel data is laid out for printing across several pages, you can manually insert page breaks where you need them. Below you'll find the steps showing how to do it.

  1. Pick your Excel worksheet where you need to insert page breaks.
  2. Go to the View tab in Excel and click on the Page Break Preview icon in the Workbook Views group.
    Go to the View tab and click on the Page Break Preview icon in the Workbook Views group

    Tip. You can also see where page breaks will appear if you click Page Break Preview Button image on the Excel status bar.
    Click Page Break Preview Button image on the status bar

    Note. If you get the Welcome to Page Break Preview dialog box, click OK. Tick the Do not show this dialog again check box to avoid seeing this message again.

  3. Now you can easily view the location of page breaks in your worksheet.
    See the location of page breaks in your worksheet

    • To add a horizontal page break, select the row where the marking line will appear. Right-click on this row and select the Insert Page Break option from the menu list.
      Select the Insert Page Break option from the menu list
    • If you need to insert a vertical page break, pick the necessary column to the right. Right-click on it and pick Insert Page Break.
      Pick the needed columns and select the Insert Page Break option from the menu list

    Tip. On more way of inserting page break in Excel is to go to the Page Layout tab, click Breaks in the Page Setup group and select the corresponding option from the drop-down list.
    Go to the Page Layout tab, click Breaks in the Page Setup group and select the option Insert Page Break

Note. If manual page breaks that you add don't work, you may have the Fit To scaling option selected (Page Layout tab -> Page Setup group -> click Dialog Box Launcher Button image -> Page). Change the scaling to Adjust to instead.

On the picture below, you can see 3 horizontal page breaks added. Therefore, if you go to Print Preview, you'll see different parts of data on separate sheets.
See 3 horizontal page breaks inserted

Insert a page break in Excel by condition

If you often print your data tables, you may want to learn how to automatically insert page breaks in Excel by condition, for example when a value in certain column changes. Say you have column named Category and you want each category to be printed on a new page.
See a table where you can automatically insert page breaks

Below, you'll find several helpful macros and the steps how to add page breaks using the Excel built-in Subtotal functionality.

Use macros to add the marking lines

Below you can find two really useful macros. They will remove all default page breaks in your table and will easily add new marking lines at the appropriate locations.

Just select the range of cells you want to use for splitting and avoid the headers.

  • InsertPageBreaksIfValueChanged - inserts page breaks if the value in the column changes.
  • InsertPageBreaksByKeyphrase - adds a page break each time it finds a cell that contains "CELL VALUE" (it's the entire cell, not part of it, don't forged to replace "CELL VALUE" in macro with your actual key phrase).

If you are novice in VBA, feel free to read How to insert and run VBA code in Excel 2010, 2013 - tutorial for beginners.

Sub InsertPageBreaksIfValueChanged() Dim rangeSelection As Range Dim cellCurrent As Range Set rangeSelection = Application.Selection.Columns(1).Cells ActiveSheet.ResetAllPageBreaks For Each cellCurrent In rangeSelection If (cellCurrent.Row > 1) Then If (cellCurrent.Value <> cellCurrent.Offset(-1, 0).Value) Then ActiveSheet.Rows(cellCurrent.Row).PageBreak = _ xlPageBreakManual End If End If Next cellCurrent End Sub Sub InsertPageBreaksByKeyphrase() Dim rangeSelection As Range Dim cellCurrent As Range Set rangeSelection = Application.Selection ActiveSheet.ResetAllPageBreaks For Each cellCurrent In rangeSelection If cellCurrent.Value = "CELL VALUE" Then ActiveSheet.Rows(cellCurrent.Row + 1).PageBreak = _ xlPageBreakManual End If Next cellCurrent End Sub

Use subtotals to insert page breaks

Have you ever thought of Subtotal as of an option for inserting page breaks in Excel? This feature actually makes the process rather easy.

  1. Make sure your table has headers. For example, if column A contains category names, then cell A1 should have the label "Category." Make sure all columns in your table contain headers.
  2. Select the range with your data. Go to Data -> Sort -> Sort by Category. Click OK to see your data parts ordered:
    Go to Data -> Sort -> Sort by Category
  3. Select any cell within your table, go to the Data tab and click on the Subtotal icon.
  4. You will see the Subtotal dialog box.
    • Select your key column from the At each change in: drop-down list. In my table, it's Category.
    • Pick Count from the Use function list.
    • Select the correct checkbox in the Add subtotal to: group.
    • Make sure the Page break between groups check box is selected.
    • Click on OK.

    Make sure the Page break between groups check box is selected

You can delete the rows and cells with totals if you don't need them and get your table with page breaks automatically inserted according to the selected settings.

How to remove page breaks in Excel

Though it's not possible to remove page breaks that Excel adds automatically, you can easily delete those you inserted manually. You can choose to remove certain marking line or remove all manually inserted page breaks.

Delete a page break

Please follow the steps below to remove a page break in Excel.

  1. Select the worksheet where you want to delete the page break mark.
  2. Click on the Page Break Preview icon under the View tab or click Page Break Preview Button image on the status bar.
  3. Now select the page break you need to remove:
    • To delete a vertical break, select the column to the right of the line. Then right-click on it and select the option Remove Page Break.
    • To remove a horizontal page break, select the row below the line that you want to delete. Right-click on this row and pick the Remove Page Break option from the list.

    Pick the needed column or row and select the Remove Page Break option from the menu list

Tip. You can also delete a page break by dragging it outside the page break preview area.

Remove all inserted page breaks

If you need to delete all page breaks, you can use the Reset All Page Breaks functionality.

  1. Open the worksheet that you want to modify.
  2. Click on the Page Break Preview icon under the View tab or click Page Break Preview Button image on the status bar.
  3. Go to the Page Layout tab in the Page Setup group and click Breaks.
    Go to the Page Layout tab in the Page Setup group and click Breaks
  4. Pick the Reset All Page Breaks option.

Tip. You can also right-click any cell on the worksheet and select Reset All Page Breaks from the menu list.

Move a page break in Excel

One more option you may find helpful is dragging a page break to another location in a worksheet.

  1. Click Page Break Preview on the View tab or click Page Break Preview Button image on the status bar.
  2. To move a page break, just drag it to a new location.
    Drag the page break to a new location

Note. After you move an automatic page break, it becomes a manual one.

Hide or show page break marks

Below you'll find how to display or hide page breaks in the Normal view

  1. Click the File tab.
  2. Go to Options -> Advanced.
  3. Scroll down to the Display options for this worksheet group and tick or clear the Show page breaks check box.
    Tick or clear the Show page breaks check box

Now you know how to easily turn page breaks on or off in the Normal view.

Reset back to the Normal view

Now that all your page breaks found the correct location, you can return to Normal view. It's as simple as clicking on the Normal icon under the View tab in Excel.
Click on the Normal icon under the View tab in Excel

You can also click Normal Button image on the status bar.
Click Normal Button image on the status bar

That's it. In this article I showed how to use the Excel page break option. I tried to cover all its options and now you know how to insert, remove, show, hide and move page breaks to adjust them before printing. You've also got several helpful macros to add marking lines by condition and learnt to work in the Excel Page Break Preview mode.

Please let me know if you have any questions. Be happy and excel in Excel!

35 comments

  1. I have a problem with the page break issue, am still not answered cause I have followed every step, but when I change it to pdf it cuts out the total column completely to a different page

  2. After hours of searching it's the first proper answer I've found. Nobody else has mentioned the "fit to" scaling option.
    Thanks a million

  3. How to add the show/hide page breaks in the quick access toolbar? Thanks!

  4. I am drawing a table on a excel sheet, and would like to remove all other grid while working on the sheet. how do i do that?

  5. Hi, i want to insert page break automatically if my data exceeds more than 32 rows. If it is less than 32 rows then it should work as normal. How can i do that?

  6. The page break code works great, but it causes a page with just the header row. How do I modify the code to account for that so that the first break is when the column value changes after the header?

    • Hello!
      I’m sorry but your description doesn’t give me a complete understanding of your task. For me to be able to help you better, please describe your task in more detail. Please specify what you were trying to find, what formula you used and what problem or error occurred. Give an example of the source data and the expected result.
      It’ll help me understand it better and find a solution for you.

  7. Aloha,
    "CORRECTED INSTRUCTIONS"
    I have a Fix that worked for me when all else failed! I have had the very same problem as all above shared, "NOT being able to adjust my page Breaks", and I tried all above...
    1) Got to File
    2) Go to Options
    3) Go to Advance
    4) Go to Editing Options, ensure "ENABLE FILL HANDLE AND CELL DRAG-AND-DROP" box is checked.

    I HAVE VERIFIED THIS FOR ME, I TOGGLED "ON" THEN "OFF", TO VERIFY AND THIS WAS THE ISSUE FOR ME THAT CAUSED ME TO NOT BE ABLE TO, AND TO BE ABLE TO ADJUST MY PAGE BREAKS...

    Good luck.

  8. Hey, Great work with the Info...
    I need some help with page breaking, I have created a timesheet that expands with descriptions wrapped, sometimes the pages get very long and I have a signature box and account details at the bottom of the page.
    My Problem is:
    I need to say if 'Row 51 moves to a new page I then need rows 47 to 50 to follow with it onto a new page'.
    Can you help Please?
    Thanks in Advance.

  9. Hello!
    Your blog is awesome and in the past I helped some people here.
    But, I can't found indications or a macro for establish break pages after vertically merged cells, to prevent page break across merged cells.
    Can you help me please?
    Thank in advance!

  10. how to filter data in excellent sheet

  11. I have disable the display of page breaks ,but when I go to print and back to sheet page breaks are displayed.how can I permanently hide the page breaks?

    • I'm not sure what you mean by 'disable the display'. Are you in Normal view? If you are in Page Break Preview, it will show the breaks. Go to Normal view.

  12. I cant get delete a page break on my pivot table. Its there after each section on my pivot table.

  13. Hello Maria

    I am facing an issue with the pivot tables. I have to draw some lines, format the numbers & their styles each time after refreshing it. I also tried Preserve the Format option but still after Refresh the lines I have drawn disappeared. Please suggest what should i do?

  14. Hi,

    I was wondering if it was possible to apply multiple print formats (port/land) on the single worksheet and save that as a single PDF document.

    eg. I have a report with 210 rows and this is what I am trying to achieve.

    - Save Range (A1:L58) - as Landscape
    - Save range (A51:H150) as Portrait
    - Save range (A154:L200) as Landscape again.

    Can you please help??

    Cheers
    Anish

  15. Hello,
    Microsoft Office version 2013.
    A worksheet, within a workbook, it's showing multiple page breaks. Every row has a page break. I have tried to use the menu to remove the breaks by reset, also by moving the blue line directly, but when I go to print, it goes back to the original form... showing page breaks on every row.

    I tried a macro too, didn't do anything.

    Thanks

  16. Hello. I am attempting to manually move a page break, as I've always done, but instead of the page accommodating with the move by scaling down a bit, as it usually does, I get about 100 individual page breaks on my page. This has never happened before. The page automatically scales down to 10% and it has like I said about 100 page breaks. I have to undo to remove or scale the page back to 100%. I am not sure if I accidently changed something in my settings but I don't recall doing anything differently with the document. Is there anything I can do to avoid this? Thank you.

  17. I cant seem to insert a page break in excel 2013. I have tried going to Page layout>Page Setup>Breaks>Insert Page Break but it doesnt work. Please assist

  18. I want to know if there is a way to set row height to only columns A through J?
    Tried looking for a vertical column break, but do not know if excel has that option. I am not looking for a page break. I have data that I want to print pass column J.

  19. I need excel work sheet filter working, filtered condents not see another persons

  20. I need excel work sheet page break short key.

  21. i trying to insert page break and not working

    i right clicked liner where i wanted tab and then went to page layout and hit insert page break and did not work

    what am i doing wrong?

  22. how to make same page break as one of above page in excel 2013 ?

  23. I know how to remove/add page breaks, however, for some reason I cannot move mine on one of my spread sheets. It is usually as easy as drag and drop, but does not seem to work on one particular sheet. Any ideas?

  24. yeah, these instructions are pretty much what I tried before searching for help. but no "remove page break" option offered when I right click

    • Hello, Marisa,

      Please try the following:
      Select the worksheet that you want to modify.
      On the View tab, in the Workbook Views group, click Page Break Preview. ...
      Do one of the following: ...
      On the Page Layout tab, in the Page Setup group, click Breaks.
      Click Remove Page Break.

    • Go to Page layout tab then

      Scale to fit Option

      Width 1 Page

      Height 1 Page
      (It Choose all in page one)

      Thank You

      • This is what I was looking for. Thanks!

        • The Option worked! Thanks!

  25. Hi am sorry I followed everything in your instruction. But I cant removed the page break in my work book.
    There is anyway that I can removed the page break?

    Thank,

Post a comment



Thank you for your comment!
When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to
your query. We cannot guarantee that we will answer every question, but we'll do our best :)