PC Review


Reply
Thread Tools Rate Thread

Automatic insertion of page breaks

 
 
Winston
Guest
Posts: n/a
 
      12th Jul 2008
I have an extensive construction completion list, that can be sorted by
room#, subcontractor, floor, author, date, etc. In each room there may be
multiple items that need to be fixed, each item is a separate record. When I
sort the list by room # I want to be able to automatically (or with as little
labor as possible) have page breaks inserted after each room, so that when I
print out the spreadsheet I can have a sheet for each room. Help please.
 
Reply With Quote
 
 
 
 
Tom Ogilvy
Guest
Posts: n/a
 
      12th Jul 2008
You can do that with Data=>Subtotals

You will have to generate a subtotal for the room, but that might be useful.

In the bottom of the dialog, select pagebreak between groups.

--
Regards,
Tom Ogilvy




"Winston" wrote:

> I have an extensive construction completion list, that can be sorted by
> room#, subcontractor, floor, author, date, etc. In each room there may be
> multiple items that need to be fixed, each item is a separate record. When I
> sort the list by room # I want to be able to automatically (or with as little
> labor as possible) have page breaks inserted after each room, so that when I
> print out the spreadsheet I can have a sheet for each room. Help please.

 
Reply With Quote
 
Joel
Guest
Posts: n/a
 
      12th Jul 2008
Change roomcol as required

Sub SetPasgeBredaks()
'
' Macro1 Macro
' Macro recorded 7/12/2008 by Joel
'

'
RoomCol = "A"
With ActiveSheet
.ResetAllPageBreaks
LastRow = .Range(RoomCol & Rows.Count).End(xlUp).Row
For RowCount = 2 To LastRow
If .Range(RoomCol & RowCount) <> _
.Range(RoomCol & (RowCount - 1)) Then

.HPageBreaks.Add Before:=.Range("A" & RowCount)
End If
Next RowCount
End With
End Sub


"Winston" wrote:

> I have an extensive construction completion list, that can be sorted by
> room#, subcontractor, floor, author, date, etc. In each room there may be
> multiple items that need to be fixed, each item is a separate record. When I
> sort the list by room # I want to be able to automatically (or with as little
> labor as possible) have page breaks inserted after each room, so that when I
> print out the spreadsheet I can have a sheet for each room. Help please.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: When automatic page breaks are moved each cell becomes a new page Queso hotmail com> Microsoft Excel Misc 0 30th Mar 2010 03:08 AM
Automatic insertion of page breaks Winston Microsoft Excel Misc 0 14th Jul 2008 09:16 PM
Automatic Page Breaks =?Utf-8?B?Um9u?= Microsoft Excel Programming 6 5th May 2006 02:07 PM
Can I set up an automatic date insertion to change for each page? =?Utf-8?B?aGVlc2U=?= Microsoft Word New Users 2 7th Jul 2005 11:24 AM
Automatic page breaks are gone??? =?Utf-8?B?Q2hpc2FuYQ==?= Microsoft Word Document Management 2 22nd Jul 2004 05:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:10 PM.