Exact Copy Multiple Cells without changing formula reference Auto Create References to Multiple Sheets Insert Bullets, Check Boxes and more.Select Duplicate or Unique Rows Select Blank Rows (all cells are empty) Super Find and Fuzzy Find in Many Workbooks Random Select.Merge Cells/Rows/Columns without losing Data Split Cells Content Combine Duplicate Rows/Columns.Super Formula Bar (easily edit multiple lines of text and formula) Reading Layout (easily read and edit large numbers of cells) Paste to Filtered Range.
Reuse: Quickly insert complex formulas, charts and anything that you have used before Encrypt Cells with password Create Mailing List and send emails.
The Best Office Productivity Tools Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by Click OK > OK to close dialogs, the page breaks have been inserted in every 2 rows. In the Insert Page Break Every Row dialog, type the interval as you need.ģ.
Select the data and click Kutools Plus > Printing > Insert Page Break Every Row.Ģ. If you want to insert page breaks in a fixed interval, you can use Kutools for Excel’s Insert Page Every Row utility to quickly handle the problem.ġ. Now page breaks is inserted when data change in the selected range. In the Distinguish differences by key column dialog, please finish below settings:ġ) click selection icon in the Range section, select the data range (excluding column headers)Ģ) click selection icon in the Key column section, select the column that you want to insert page break based on corresponding data change (excluding column headers)ģ) check Page Break option in Options section. Kutools for Excel, with more thanģ00 handy functions, makes your jobs more easier.Īfter installing Kutools for Excel, please do as below: (Free Download Kutools for Excel Now!)Ĭlick Kutools > Format > Distinguish Differences.Ģ. The Distinguish Differences feature of Kutools for Excel supports to insert page break, blank row, bottom border or background color when data change in Excel. Click OK, now the page breaks have been inserted. Press F5 key, a dialog pops out to remind you select the key column which insert page break based on.Ĥ. If xRg.Value xRg.Offset(-1, 0).Value ThenĪctiveSheet.Rows(xRg.Row).PageBreak = xlPageBreakManualģ. Set xSRg = Application.InputBox("Select key column:", "Kutools for Excel", xTxt,, ,, , 8)ĪctiveSheet.Rows(xRg.Row).PageBreak = xlPageBreakNone VBA: Insert page breaks when data changes Sub PageBreak()
Click Insert > Module, copy and paste below code to the new Module window. Press Alt + F11 keys to display Microsoft Visual Basic for Applications window.Ģ. If you do not want to add groups to the data, you can try VBA code to handle this job.ġ. Now the data has been grouped and added page breaks. In the Subtotal dialog, select the column you want to insert page break based on its value in At each change in drop down list, then choose the function you want to use from Use function list, then check Page break between groups checkbox and other options as you need.ģ. Select the data you want to add page breaks, click Data > Subtotal.Ģ. In Excel, the Subtotal function can add page breaks based on group.ġ. Insert Page Break Every Row to insert page break in nth rows Using Subtotal function to insert page breaksĭistinguish Differences to insert page break when data change Supposing you need to insert page breaks while the values are changed in column A as below screenshot shown, how could you handle it in Excel? Generally, you can insert the page breaks one by one manually, but here, I introduce some tricks on solving this quickly.
How to conditional inserting page breaks in Excel?