Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default setting page breaks.

My spreadsheet is long and thin so only need to think about horizontal page
breaks.

I want to say fit to X pages vertically with the pages breaks here, here and
here.

I am using .PageSetup.FitToPagesTall = X

and .HPageBreaks(P).Location = .Cells(B4row, 1)

P is the Pth pagebreak and B4row is the row I want the break before. (Have
tried this as a range as well as a cell)

Excel just ignores my efforts

any suggestions??



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default setting page breaks.

Fit to pages ignores pagebreaks. - just to confirm you observations.

If you want to set the pagebreaks, then you have to control the layout. If
you want excel to control the layout, then it sets the pagebreaks.

You might try setting the pagebreaks and then playing with the zoom setting
until your pagebreak matches the automatic pagebreak.

--
Regards,
Tom Ogilvy


"Rod" wrote:

My spreadsheet is long and thin so only need to think about horizontal page
breaks.

I want to say fit to X pages vertically with the pages breaks here, here and
here.

I am using .PageSetup.FitToPagesTall = X

and .HPageBreaks(P).Location = .Cells(B4row, 1)

P is the Pth pagebreak and B4row is the row I want the break before. (Have
tried this as a range as well as a cell)

Excel just ignores my efforts

any suggestions??




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default setting page breaks.

smart idea, ta

"Tom Ogilvy" wrote in message
...
Fit to pages ignores pagebreaks. - just to confirm you observations.

If you want to set the pagebreaks, then you have to control the layout.

If
you want excel to control the layout, then it sets the pagebreaks.

You might try setting the pagebreaks and then playing with the zoom

setting
until your pagebreak matches the automatic pagebreak.

--
Regards,
Tom Ogilvy


"Rod" wrote:

My spreadsheet is long and thin so only need to think about horizontal

page
breaks.

I want to say fit to X pages vertically with the pages breaks here, here

and
here.

I am using .PageSetup.FitToPagesTall = X

and .HPageBreaks(P).Location = .Cells(B4row, 1)

P is the Pth pagebreak and B4row is the row I want the break before.

(Have
tried this as a range as well as a cell)

Excel just ignores my efforts

any suggestions??






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default setting page breaks.

xl2002+ respects those pagebreaks with fit to pages set (well, when you leave
one of the tall or wide boxes empty).

A nice enhancement.

(I'm using xl2003, but I think I noticed this in xl2002, too, er, also <vbg.)

Tom Ogilvy wrote:

Fit to pages ignores pagebreaks. - just to confirm you observations.

If you want to set the pagebreaks, then you have to control the layout. If
you want excel to control the layout, then it sets the pagebreaks.

You might try setting the pagebreaks and then playing with the zoom setting
until your pagebreak matches the automatic pagebreak.

--
Regards,
Tom Ogilvy

"Rod" wrote:

My spreadsheet is long and thin so only need to think about horizontal page
breaks.

I want to say fit to X pages vertically with the pages breaks here, here and
here.

I am using .PageSetup.FitToPagesTall = X

and .HPageBreaks(P).Location = .Cells(B4row, 1)

P is the Pth pagebreak and B4row is the row I want the break before. (Have
tried this as a range as well as a cell)

Excel just ignores my efforts

any suggestions??





--

Dave Peterson
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
Setting Page Breaks Ken Hudson Excel Discussion (Misc queries) 1 January 5th 10 08:47 PM
setting page breaks for whole spreadsheet to be consistent? Mickey Setting up and Configuration of Excel 1 May 15th 07 12:50 AM
Setting page breaks in Excel - drag and drop Pretzil Excel Discussion (Misc queries) 1 October 13th 06 11:15 PM
Setting page breaks (another) Ian W[_2_] Excel Programming 1 March 15th 05 12:23 PM
Are conditional formats available for setting page breaks? Nicky Armstrong Excel Discussion (Misc queries) 1 February 20th 05 03:51 PM


All times are GMT +1. The time now is 11:00 AM.

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

About Us

"It's about Microsoft Excel"