insert page breaks by condition

szahner

New Member
Joined
Aug 10, 2010
Messages
2
Have customer numbers in column A listed contiguously in a number of rows, need to insert page breaks after the last entry of each customer number automatically (as there are more than 100 customers)

5996
5996
5996
page break
5991
5991
5991
5991
page break
7895
7895
 

Some videos you may like

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
7,983
Welcome to the board.

Try selecting your column and going to data --> subtotals and checking "Page breaks between groups"

If you don't want the subtotals in there, you can going to outline view 2 (to the left of the A in the column headings), select your subtotals, press ALT + ; (to select visible cells), and press delete.

You'll technically have a blank line at the bottom of each page, but it should be cosmetically equivalent when you print.
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,105,996
Messages
5,508,644
Members
408,689
Latest member
SamSan78

This Week's Hot Topics

  • Turn fraction around
    Hello I need to turn a fraction around, for example I have 1/3 but I need to present as 3/1
  • TIme Clock record reformatting to ???
    Hello All, I'd like some help formatting this (Tbl-A)(Loaded via Power Query) [ATTACH type="full" width="511px" alt="PQdata.png"]22252[/ATTACH]...
  • TextBox Match
    hi, I am having a few issues with my code below, what I need it to do is when they enter a value in textbox8 (QTY) either 1,2 or 3 the 3 textboxes...
  • Using Large function based on Multiple Criteria
    Hello, I can't seem to get a Large formula to work based on two criteria's. I can easily get a oldest value based one value, but I'm struggling...
  • Can you check my code please
    Hi, Im going round in circles with a Compil Error End With Without With Here is the code [CODE=rich] Private Sub...
  • Combining 2 pivot tables into 1 chart
    Hello everyone, My question sounds simple but I do not know the answer. I have 2 pivot tables and 2 charts that go with this. However I want to...
Top