I have a question regarding printing an area into multiple pages, and getting the samme "area" on the top of the paper.
My problem is when i pagebreak this way, it only print out until the pagebreak, i dont get the numbers below printet out. When the second part is printet out, it needs to include the 13 first rows of the area(where the explanation is).
Hope someone can help
I have this code for printing:
Call Set_Print_Area
With ActiveSheet.PageSetup
.Orientation = xlPortrait
.PaperSize = xlPaperA4
.Draft = False
.Zoom = False
.FitToPagesTall = False
.FitToPagesWide = 1
.BlackAndWhite = True
.CenterHorizontally = False
.CenterVertically = True
ActiveSheet.HPageBreaks.Add Before:=ActiveSheet.Rows(56)
End With
Sub Set_Print_Area()
Dim lastCell As Long
Dim ws As Worksheet
lastCell = Range("P" & Rows.Count).End(xlUp).Offset(-4).Row
ActiveSheet.PageSetup.PrintArea = "AB1:AS" & lastCell
End Sub