Help for this page

Select Code to Download


  1. or download this
        Rows("6:6").Select
        ActiveWindow.SelectedSheets.HPageBreaks.Add Before:=ActiveCell
    
  2. or download this
    use strict;
    use warnings;
    ...
    
    my $row = 6;
    $Excel->Worksheets(1)->HPageBreaks->Add({ Before => $Excel->Worksheets
    +(1)->Range("A$row") });