LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Trying to delete existing unwanted horizontal page breaks

When formatting a report with varying row heights and row pairs, the existing
(system-created page breaks are often in the wrong location. I have tried
several other methods such as listed on this group to delete all or to delete
individual page breaks, to no avail, such as:

ActiveSheet.ResetAllPageBreaks '/ TURNS ON BAD VERT PAGE BREAKS !!!!
ActiveSheet.DisplayPageBreaks = False '/ system breaks ????
ActiveSheet.DisplayAutomaticPageBreaks = False '/ system breaks ????

Which either do nothing or turn on undesirable vertical breaks messing up a
landscape-formatted spreadsheet. I seem to have no trouble inserting
additional page breaks with:

ActiveSheet.HPageBreaks.Add Befo=ActiveSheet.Cells(Irr_rows, 1)
and send the location where I have set them to the immediate window.

and can count the total number and detect where they occur with

tbreaks = ActiveSheet.HPageBreaks.Count '/ get current page break total
this sheet

and then have to go back and manually delete the unwanted breaks.

Is there ANY WAY to delete individual or all existing horizontal page breaks,
and is there any software difference between a system-inserted or a
manually-inserted page break?

John Strickland

 
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
Horizontal Page Breaks Jon Peltier Excel Programming 0 December 5th 06 06:54 PM
Unwanted page breaks Grace Excel Discussion (Misc queries) 0 March 27th 06 12:07 AM
Unwanted page breaks Grace Excel Discussion (Misc queries) 0 March 26th 06 11:44 PM
Delete unwanted page breaks. Tionne Excel Worksheet Functions 1 February 21st 06 03:38 PM
unwanted page breaks bridget Excel Discussion (Misc queries) 2 November 12th 05 01:21 AM


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

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"