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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pagebreak in excel printing

Status
Not open for further replies.

AgatheB

Programmer
Jan 16, 2003
36
DK
Hi there!

I'm using some code to print 4 periods continuously, but with the code below nothing happens.....


For Each One_break In ActiveSheet.HPageBreaks
One_break.Delete
Next

(The code loops 3 times, but on MsgBox "Breaks: " & ActiveSheet.HPageBreaks.Count i get the value 3....)

Any suggestions?

Agathe
 
Sorry, it's not that i can't print, I just can't get rid of those pagebreaks....

Agathe
 
Found out about it:

ActiveSheet.ResetAllPageBreaks

(How hard can it be? ;-))

There's not so much info on this subject on the internet (or I just look the wrong places....)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top