Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 979 Bytes

Excel.Worksheet.VPageBreaks.md

File metadata and controls

45 lines (30 loc) · 979 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Worksheet.VPageBreaks property (Excel)
vbaxl10.chm175136
vbaxl10.chm175136
Excel.Worksheet.VPageBreaks
2a8d5c77-a609-4995-7216-de71295eda9a
05/30/2019
medium

Worksheet.VPageBreaks property (Excel)

Returns a VPageBreaks collection that represents the vertical page breaks on the sheet. Read-only.

Syntax

expression.VPageBreaks

expression A variable that represents a Worksheet object.

Example

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

For Each pb in Worksheets(1).VPageBreaks 
 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"

[!includeSupport and feedback]