Hello,
I am trying to format the printing of a sheet so that there is a page break every 39 rows.
I do :-
With Worksheets("ExcessReport")
.Activate
LastRow = .Range("F" & .Rows.Count).End(xlUp).Row
.PageSetup.PrintArea = "$A$1:$I$" & LastRow
.ResetAllPageBreaks
For i = 39 To LastRow Step 39
.Rows(i).PageBreak = xlPageBreakManual
Next i
End With
But when I look in page break preview there are page breaks at row 45 and 90 and none on row 39 etc
Can anyone help
Thanks
Phil