DisplayPageBreaks Property

Microsoft Excel Visual Basic

True if page breaks (both automatic and manual) on the specified worksheet are displayed. Read/write Boolean.

Remarks

You can't set this property if you don't have a printer installed.

Example

This example causes Sheet1 to display page breaks.

Worksheets("Sheet1").DisplayPageBreaks = True