Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default Remove all manual page breaks

Excel 2002, WinXP
My code inserts manual page breaks here and there as needed prior to
printing. Bur prior to inserting these manual page breaks, I need for the
code to remove all the manual page breaks inserted in the previous run of
the code. How do I code the removal of all the manual page breaks?
PS: I am doing this for each sheet I need to print so I need to remove the
page breaks on only one sheet at a time as the code loops through the
sheets.
Thanks for your help. Otto


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Remove all manual page breaks

I recorded a macro when I selected all the cells and then did

Insert|Reset All Page Breaks

I got this relevant code:

ActiveSheet.ResetAllPageBreaks




Otto Moehrbach wrote:

Excel 2002, WinXP
My code inserts manual page breaks here and there as needed prior to
printing. Bur prior to inserting these manual page breaks, I need for the
code to remove all the manual page breaks inserted in the previous run of
the code. How do I code the removal of all the manual page breaks?
PS: I am doing this for each sheet I need to print so I need to remove the
page breaks on only one sheet at a time as the code loops through the
sheets.
Thanks for your help. Otto


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default Remove all manual page breaks

Now I have to ask myself why I didn't think of that? Thanks Dave. Otto
"Dave Peterson" wrote in message
...
I recorded a macro when I selected all the cells and then did

Insert|Reset All Page Breaks

I got this relevant code:

ActiveSheet.ResetAllPageBreaks




Otto Moehrbach wrote:

Excel 2002, WinXP
My code inserts manual page breaks here and there as needed prior to
printing. Bur prior to inserting these manual page breaks, I need for
the
code to remove all the manual page breaks inserted in the previous run of
the code. How do I code the removal of all the manual page breaks?
PS: I am doing this for each sheet I need to print so I need to remove
the
page breaks on only one sheet at a time as the code loops through the
sheets.
Thanks for your help. Otto


--

Dave Peterson



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Remove all manual page breaks

I'm looking for help with using a macro to insert page breaks and am curious
what code you are using to insert page breaks.

"Otto Moehrbach" wrote:

Now I have to ask myself why I didn't think of that? Thanks Dave. Otto
"Dave Peterson" wrote in message
...
I recorded a macro when I selected all the cells and then did

Insert|Reset All Page Breaks

I got this relevant code:

ActiveSheet.ResetAllPageBreaks




Otto Moehrbach wrote:

Excel 2002, WinXP
My code inserts manual page breaks here and there as needed prior to
printing. Bur prior to inserting these manual page breaks, I need for
the
code to remove all the manual page breaks inserted in the previous run of
the code. How do I code the removal of all the manual page breaks?
PS: I am doing this for each sheet I need to print so I need to remove
the
page breaks on only one sheet at a time as the code loops through the
sheets.
Thanks for your help. Otto


--

Dave Peterson




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Remove all manual page breaks

Hi Bking,

Try:

ActiveSheet.HPageBreaks.Add Befo=ActiveCell

---
Regards,
Norman


"Bking" wrote in message
...
I'm looking for help with using a macro to insert page breaks and am
curious
what code you are using to insert page breaks.



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 Page Breaks Sue C Excel Discussion (Misc queries) 4 December 2nd 09 10:04 PM
Remove Manual Line Breaks in Cell prizm Excel Discussion (Misc queries) 3 June 13th 07 04:41 PM
Dealing with automatic / manual page breaks Turquoise_dax Excel Discussion (Misc queries) 2 June 27th 06 02:50 PM
Count number of manual and automatic vertical page breaks - examples DataFreakFromUtah Excel Programming 0 January 13th 04 03:52 PM
Count the number of just the horizontal manual page breaks DataFreakFromUtah Excel Programming 1 November 27th 03 03:59 PM


All times are GMT +1. The time now is 02:49 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"