Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Delete Page Breaks -
Hello, I'm having a little difficulty understanding why the following isn't
working I have two page breaks on a Sheet that i've added to test this out. All I want to do at the moment is just make sure that it's finding the page breaks (as my for each loop wasn't doing anything) Heres the code Public Sub removeBreaks() Dim brks As HPageBreaks Set brks = Sheet7.HPageBreaks MsgBox brks.count End Sub Now I know I have two page breaks, but brks.Count returns 0, so it's not returning them. Is there another collection for pagebreaks, or perhaps I'm neglecting something? Thanks in advance! Nathan |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Delete Page Breaks -
Set brks = Worksheets("Sheet7").HPageBreaks
Regards, Stefi €˛NateBuckley€¯ ezt Ć*rta: Hello, I'm having a little difficulty understanding why the following isn't working I have two page breaks on a Sheet that i've added to test this out. All I want to do at the moment is just make sure that it's finding the page breaks (as my for each loop wasn't doing anything) Heres the code Public Sub removeBreaks() Dim brks As HPageBreaks Set brks = Sheet7.HPageBreaks MsgBox brks.count End Sub Now I know I have two page breaks, but brks.Count returns 0, so it's not returning them. Is there another collection for pagebreaks, or perhaps I'm neglecting something? Thanks in advance! Nathan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how can i delete automatic page breaks in excel | New Users to Excel | |||
can one delete or change automatic page breaks? | Excel Worksheet Functions | |||
How do I delete page breaks from my documents? | Excel Discussion (Misc queries) | |||
Delete unwanted page breaks. | Excel Worksheet Functions | |||
How to delete all page breaks? | Excel Programming |