Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 42
Default Print auto page breaks

Can I have a worksheet print with auto page breaks? EX: I have a column with
repeating information sorted in alphabetical order - Names. I want to print
separate pages for each person. Can I have Excel automatically put page
breaks after each grouped set of names? I could do it manually but there are
a lot of names and it would be too time consuming.

Cameron

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Print auto page breaks

Sub Insert_PBreak()
Dim OldVal As String
Dim rng As Range
OldVal = Range("A1")
For Each rng In Range("A1:A300") '<< change range
If rng.text < OldVal Then
rng.PageBreak = xlPageBreakManual
OldVal = rng.text
End If
Next rng
End Sub


Gord Dibben MS Excel MVP

On Tue, 6 Jan 2009 12:56:02 -0800, Cameron
wrote:

Can I have a worksheet print with auto page breaks? EX: I have a column with
repeating information sorted in alphabetical order - Names. I want to print
separate pages for each person. Can I have Excel automatically put page
breaks after each grouped set of names? I could do it manually but there are
a lot of names and it would be too time consuming.

Cameron


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page breaks shift after preview/setting print pref Lara H. New Users to Excel 4 February 14th 08 07:50 PM
auto add page breaks Pam Coleman Excel Discussion (Misc queries) 1 September 26th 06 06:50 PM
How do I print a workbook a continuously (no page breaks)? Resource Directory Excel Discussion (Misc queries) 0 May 28th 06 01:37 AM
Print Workbook Without Page Breaks Between Worksheets annem Excel Worksheet Functions 0 December 21st 04 08:05 PM
Page breaks don't show on screen and don't print separately. It i. Peter Excel Discussion (Misc queries) 1 November 29th 04 04:33 PM


All times are GMT +1. The time now is 01:53 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"