This code inserts a page break at the active cell.
VBA Code:
Sub InsertPageBreak()
ActiveWindow.SelectedSheets.HPageBreaks.Add Before:=ActiveCell
End Sub
This code inserts a page break at the active cell.
VBA Code:
Sub InsertPageBreak()
ActiveWindow.SelectedSheets.HPageBreaks.Add Before:=ActiveCell
End Sub