Class Break (Word VBA)

The class Break represents individual page, column, and section breaks in a page. Use the Break object and the related methods and properties for programmatically defining page layout in a document. To use a Break class variable it first needs to be instantiated, for example


Dim brk as Break
Set brk = ActiveWindow.ActivePane.Pages(1).Breaks(Index:=1)

For Each

Here is an example of processing the Break items in a collection.


Dim brk As Break
For Each brk In ActiveWindow.ActivePane.Pages(1).Breaks
	
Next brk

PageIndex

Returns a Long that represents the page number on which the specified break occurs.


ActiveDocument.ActiveWindow.Panes(1).Pages(1).Breaks(1).PageIndex

Range

Returns a Range object that represents the portion of a document that's contained in the specified object.


Dim rngRange As Range
Set rngRange = ActiveWindow.ActivePane.Pages(1).Breaks(1).Range