Suppress all PageBreaks of a worksheet

M

MichDenis

Hi everyone,

If I want to suppress all "PageBreak" of a worksheet,
which method represent the best solution ?

Worksheets("sheet1").Cells.PageBreak = xlPageBreakNone
Or
Worksheets("sheet1").ResetAllPageBreaks

Are there a significant differences between this two approaches?
If yes, what are they ?

Thanks in advance for your collaboration and your time.
 
J

Joe Farruggio

MichDenis said:
Hi everyone,

If I want to suppress all "PageBreak" of a worksheet,
which method represent the best solution ?

Worksheets("sheet1").Cells.PageBreak = xlPageBreakNone
Or
Worksheets("sheet1").ResetAllPageBreaks

Are there a significant differences between this two approaches?
If yes, what are they ?

Thanks in advance for your collaboration and your time.
Joe Farruggio wrote:
I have seen no significant difference
 
T

Tom Ogilvy

What do you want to achieve?

Maybe ActiveSheet.Displaypagebreaks = False

which will speed up your code, is what you want. The other two methods
don't remove automatic pagebreaks and may make them visible. (nothing
does).
 
M

MichDenis

"MichDenis" <[email protected]> a écrit dans le message de %[email protected]...
Hi everyone,

If I want to suppress all "PageBreak" of a worksheet,
which method represent the best solution ?

Worksheets("sheet1").Cells.PageBreak = xlPageBreakNone
Or
Worksheets("sheet1").ResetAllPageBreaks

Are there a significant differences between this two approaches?
If yes, what are they ?

Thanks in advance for your collaboration and your time.
 

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