deleting pagebreaks in VB

R

ragman

How do I remove a pagebreak in Visual Basic? In the windows environment, I
just set the pagebreak to xlPageBreakNone, but Office.X doesn't know this
variable. What can I do?

Rags
 
J

JE McGimpsey

ragman said:
How do I remove a pagebreak in Visual Basic? In the windows environment, I
just set the pagebreak to xlPageBreakNone, but Office.X doesn't know this
variable. What can I do?

Rags

Using

Const xlPageBreakNone As Long = 0
Cells.PageBreak = xlPageBreakNone

still works, since setting Cells.Pagebreak to 0 removes all manual page
breaks. So does

ActiveSheet.ResetAllPageBreaks

or, to clear a single break:

ActiveCell.PageBreak = xlPageBreakNone
 

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

Top