HPageBreaks Property

Applies To

Charts collection object, Sheets collection object, Worksheet object, Worksheets collection object.

Description

Returns an HPageBreaks collection that represents the horizontal page breaks on the sheet. Read-only.

See Also

VPageBreaks property.

Example

This example displays the number of full-screen and print-area horizontal page breaks.

For Each pb in Worksheets(1).HPageBreaks
    If pb.Extent = xlPageBreakFull Then
        cFull = cFull + 1
    Else
        cPartial = cPartial + 1
    End If
Next
MsgBox cFull & " full-screen page breaks, " & cPartial & _
    " print-area page breaks"