Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Deleting PageBreaks

Try:

ActiveSheet.ResetAllPageBreaks

to clear out all the old breaks
--
Gary''s Student


"asmenut" wrote:

Help. I have some code written that first deletes all data in the sheet
(Cells.Delete shift:=xlUp) and reloads the current information from a
database. When I go to format the sheet (using VBA), I noticed that while I
have set the printarea properly, there are vertical page breaks that I need
to remove so I can print all the data (A1:T#) on one sheet.

I have tried "Set Activesheet.VPageBreaks.Location = Range("T#")",
"ActiveSheet.VPageBreaks.Delete", adn even the macro method "DragOff", but to
no avail.

While I can manually go and reset the pagebreaks, I need a way to do it by
code so that if someone adds new sheets, I can add the sheet(s) to the
existing code to automate. Am I missing something?

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
Deleting PageBreaks asmenut Excel Programming 1 November 16th 05 05:38 PM
Is there no one who uses PageBreaks? HPageBreaks? GeorGeorGe Excel Worksheet Functions 0 February 11th 05 05:53 PM
Pagebreaks are not made Jos Vens Excel Programming 7 January 9th 05 07:16 AM
pagebreaks Yiannis H. Economides Excel Programming 1 February 19th 04 04:03 PM
Excel pagebreaks Don Nicholson Excel Programming 0 September 15th 03 05:44 PM


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