#1   Report Post  
Posted to microsoft.public.excel.misc
pm pm is offline
external usenet poster
 
Posts: 122
Default Page Break

I want to do a page break at each new location...for example:

Location#
11028
11029

At the end of each location I want to do a page break.....How can I do this???


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 860
Default Page Break

Hi pm,

Go to ViewPage Break Preview
Click on a blue line and drag it to where you want it.
If you get a bit savage with it at first you will soon see how it works.
By savage I mean grab one line and drag it way off to the right
then grab another and drag it way down the bottom.

HTH
Martin

"pm" wrote in message
...
I want to do a page break at each new location...for example:

Location#
11028
11029

At the end of each location I want to do a page break.....How can I do
this???




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Page Break

You OK with a macro?

Sub InsertBreak_At_Change()
Dim i As Long
For i = Columns(1).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


Gord Dibben MS Excel MVP



On Sat, 8 Sep 2007 07:20:01 -0700, pm wrote:

I want to do a page break at each new location...for example:

Location#
11028
11029

At the end of each location I want to do a page break.....How can I do this???


  #4   Report Post  
Posted to microsoft.public.excel.misc
pm pm is offline
external usenet poster
 
Posts: 122
Default Page Break

Gord - - works fabulously! Thanks so much
pm

"Gord Dibben" wrote:

You OK with a macro?

Sub InsertBreak_At_Change()
Dim i As Long
For i = Columns(1).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


Gord Dibben MS Excel MVP



On Sat, 8 Sep 2007 07:20:01 -0700, pm wrote:

I want to do a page break at each new location...for example:

Location#
11028
11029

At the end of each location I want to do a page break.....How can I do this???



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Page Break

Thanks for the feedback.

Gord

On Sat, 8 Sep 2007 09:18:02 -0700, pm wrote:

Gord - - works fabulously! Thanks so much
pm

"Gord Dibben" wrote:

You OK with a macro?

Sub InsertBreak_At_Change()
Dim i As Long
For i = Columns(1).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


Gord Dibben MS Excel MVP



On Sat, 8 Sep 2007 07:20:01 -0700, pm wrote:

I want to do a page break at each new location...for example:

Location#
11028
11029

At the end of each location I want to do a page break.....How can I do this???




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
Remove big gray page number on Page Break Preview??? annafred Excel Discussion (Misc queries) 1 January 9th 07 02:28 AM
change page number watermark in page break preview juga Excel Discussion (Misc queries) 2 December 25th 06 10:16 AM
change and/or remove page number watermark in page break preview juga Excel Discussion (Misc queries) 2 December 25th 06 10:15 AM
Hiding the page number in page break preview background. I need coffee, wake me up! Excel Discussion (Misc queries) 0 May 15th 06 10:32 AM
adding a new page break to an existing page break Edward Letendre Excel Discussion (Misc queries) 1 March 6th 05 09:29 AM


All times are GMT +1. The time now is 10:08 AM.

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"