Syntax
InsertBreak [.Type = number]
Remarks
Inserts a page, column, or section break at the insertion point. The values available for the .Type argument correspond to the options in the Break dialog box (Insert menu).
Argument | Explanation |
.Type | The type of break to insert: 0 (zero) or omitted Page break 1 Column break 2 Next Page section break 3 Continuous section break 4 Even Page section break 5 Odd Page section break 6 Line break (newline character) |
Example
This example inserts a page break before each Heading 1 paragraph in the active document:
StartOfDocument EditFindClearFormatting EditFindStyle .Style = "Heading 1" EditFind .Find = "", .Direction = 0, .Wrap = 0 While EditFindFound() CharLeft InsertBreak .Type = 0 EditFind .Find = "", .Direction = 0, .Wrap = 0 Wend
See Also
InsertColumnBreak, InsertPageBreak, InsertSectionBreak, ParaPageBreakBefore, TableSplit