Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i delete automatic page breaks in excel jo New Users to Excel 1 July 30th 08 05:03 PM
can one delete or change automatic page breaks? TJ Excel Worksheet Functions 1 October 31st 07 05:42 PM
How do I delete page breaks from my documents? danajohnson88 Excel Discussion (Misc queries) 2 August 1st 06 04:11 PM
Delete unwanted page breaks. Tionne Excel Worksheet Functions 1 February 21st 06 03:38 PM
How to delete all page breaks? mchastant Excel Programming 3 September 8th 05 05:34 PM


All times are GMT +1. The time now is 10:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"