VPageBreak.Location property (Excel)

Returns the cell (a Range object) that defines the page-break location. Vertical page breaks are aligned with the left edge of the location cell. Read-only Range.

Syntax

expression.Location

expression A variable that represents a VPageBreak object.

Example

This example stores the vertical page-break location in a Range object.

Dim r as Range
Set r = Worksheets(1).VPageBreaks(1).Location

Note

Location is read-only, and can only be used to return the current vertical page-break location. To change the location of a VPageBreak, you must use the Dragoff method.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.