Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PageBreak removal

Status
Not open for further replies.

Aeneas

Programmer
Sep 18, 2003
25
CA
This seems simple enough:

Code:
ActiveWindow.SelectedSheets.HPageBreaks.Add Before:=ActiveCell


How about removing one. I don't want to reset all as in:

Code:
ActiveSheet.ResetAllPageBreaks


I just want to get rid of the one, like:

Code:
ActiveSheet.HPageBreaks(1).Remove


But this doesn't work. Any suggestions?

Cheers,

Tom
 
Crap -- it's:

Code:
ActiveSheet.HPageBreaks(1).Delete


Tried a whole whack of stuff, but this seems to work. When I tried this, I don't think I had HPageBreaks[1] set, so got a runtime error, but this works.

Sorry for the waste of time.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top