LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Count the number of just the horizontal manual page breaks

Win 2000
Excel 2000

Hello,
I am trying to find a way to count just the number of manual
horizontal
page breaks in the active worksheet. The count should not include
the number of automatic horizontal page breaks. I have a procedure
below that gives me both (manual & automatic), but I can't find
a way to isolate for just the manual count.


I need to incorporate xlPageBreakManual into the procedure I think,
but
I'm sure how to do this.
I would appreciate any help that could be provided.
Thank you so much.
Tom


Sub PageBreaksHCount()
'Counts the number of horiztonal page breaks (both manual & automatic)
on the
'active worksheet.
Dim HBreaksCount As Integer
HBreaksCount = ActiveSheet.HPageBreaks.Count
MsgBox "There are " & HBreaksCount & " manual and automatic page
breaks on this sheet"
End Sub
 
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
1026 horizontal page breaks? GregL Excel Discussion (Misc queries) 0 April 30th 08 07:03 PM
"manual page breaks error" Dee Excel Worksheet Functions 5 June 20th 07 10:18 PM
Dealing with automatic / manual page breaks Turquoise_dax Excel Discussion (Misc queries) 2 June 27th 06 02:50 PM
horizontal page breaks Santhosh Kumar Excel Discussion (Misc queries) 1 June 25th 05 02:04 PM
Excel - turn a page number in a header from horizontal to vertical pbrookstx Charts and Charting in Excel 1 June 4th 05 01:01 AM


All times are GMT +1. The time now is 09:57 PM.

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

About Us

"It's about Microsoft Excel"