a small macro will do the trick:
Code:
Sub blah()
StopValue = 4000 'adjust yourself.
For i = 1 To StopValue Step 80
myrow = ((i - 1) / 2) + 1
If i <= StopValue Then
ActiveWindow.SelectedSheets.HPageBreaks.Add Before:=Cells(myrow + 40, 1)
With Cells(myrow, "A")
.Value = i
.DataSeries Rowcol:=xlColumns, Type:=xlLinear, Date:=xlDay, Step:=1, Stop:=Application.Min(i + 40 - 1, StopValue), Trend:=False
If i + 40 <= StopValue Then
With .Offset(, 3)
.Value = i + 40
.DataSeries Rowcol:=xlColumns, Type:=xlLinear, Date:=xlDay, Step:=1, Stop:=Application.Min(i + 80 - 1, StopValue), Trend:=False
End With
End If
End With
End If
Next i
End Sub
Bookmarks