ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Set page break criteria? (https://www.excelbanter.com/excel-programming/408124-set-page-break-criteria.html)

J.W. Aldridge

Set page break criteria?
 
Any way to alter this code to print only 30 rows per page break?
Since the beginning line is set at A6, the page breaks would be at
A36, then A66, A96 and so on.
I am having trouble with the print being too small and this should
eliminate this issue.


Sub SetPrtAr_mysheet()
Dim lLastRow As Long
lLastRow = Range("I65536:K65536").End(xlUp).Row
Orientation = xlLandscape
ActiveSheet.PageSetup.PrintArea = Range("a6:N" & lLastRow).Address
End Sub


Thanx


All times are GMT +1. The time now is 08:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com