Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
delete multiple pagebreaks
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
delete multiple pagebreaks
I didn't test it, but
sht.Rows("5:6").PageBreak = xlNone -- Regards, Tom Ogilvy "snax500" wrote in message om... 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 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
delete multiple pagebreaks
It doesn't seem to work. All it does is delete the first page break.
Thanks "Tom Ogilvy" wrote in message ... I didn't test it, but sht.Rows("5:6").PageBreak = xlNone -- Regards, Tom Ogilvy "snax500" wrote in message om... 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 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
delete multiple pagebreaks
Guess you will need to loop then.
-- Regards, Tom Ogilvy "bg" wrote in message ... It doesn't seem to work. All it does is delete the first page break. Thanks "Tom Ogilvy" wrote in message ... I didn't test it, but sht.Rows("5:6").PageBreak = xlNone -- Regards, Tom Ogilvy "snax500" wrote in message om... 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how do I remove multiple pagebreaks in an excel document in one g | Excel Discussion (Misc queries) | |||
Is there no one who uses PageBreaks? HPageBreaks? | Excel Worksheet Functions | |||
Pagebreaks are not made | Excel Programming | |||
pagebreaks | Excel Programming | |||
Excel pagebreaks | Excel Programming |