delete multiple pagebreaks

  • Thread starter Thread starter snax500
  • Start date Start date
S

snax500

In Excel2000, how do I combine these statements into one (for rows 5-6):

For Each sht In ActiveWindow.SelectedSheets
sht.Rows(5).PageBreak = xlNone
sht.Rows(6).PageBreak = xlNone
Next

I wanted somtething like this (but it does not work):

sht.Rows(5, 6).PageBreak = xlNone

Thanks
 
It doesn't seem to work. All it does is delete the first page break.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top