Insert a page break for each new record

  • Thread starter Thread starter strugglin'
  • Start date Start date
S

strugglin'

I have a spreadsheet with multiple columns, and one of the
columns contains duplicate entries. I have re-sorted the
table by this column, and now I would like to print the
table, but I'd like a new page to commence with each new
record.
I realize I can do this in Access, but this spreadsheet is
for someone else with minimal pc skills, so I want to keep
it simple for them by just adjusting the print settings.
Thanks.
 
Hi
this would be only possible with VBA / a macro. Is this a possible
solution for you?. If yes you may provide a little bit more detail
about your data structure. Which column defines that a new record
starts
 
strugglin

Sub InsertBreak_At_Change()
Dim i As Long
For i = Selection.Rows.Count To 1 Step -1
If Selection(i).Row = 1 Then Exit Sub
If Selection(i) <> Selection(i - 1) And Not IsEmpty _
(Selection(i - 1)) Then
With Selection(i)
.PageBreak = xlPageBreakManual
End With
End If
Next
End Sub

Select to the bottom of your sorted column then run the macro.

Can take some time with many rows and breaks.

Gord Dibben Excel MVP
 
You could use Data|Subtotals.

On that dialog, there's an option to insert a page break between groups.

(new record means new group???)
 
Thanks for all the suggestions...problem solved.
-----Original Message-----
You could use Data|Subtotals.

On that dialog, there's an option to insert a page break between groups.

(new record means new group???)



--

Dave Peterson
(e-mail address removed)
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Inserting page break 4
Page break dosen't break 4
Inserting Page Breaks 3
Remove page breaks 2
Page Break Preview 4
Print auto page breaks 1
Page break issues 1
Pivot Table Page Break Refresh Problem 0

Back
Top