ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to print 25 rows on each page in Excel (https://www.excelbanter.com/excel-programming/279933-how-print-25-rows-each-page-excel.html)

Suresh[_3_]

How to print 25 rows on each page in Excel
 

Hi,

Can any body pl help me out

For suppose I have 1000 rows in my excel sheet.
My requirement is to get 25 rows in each page while
printing...

ie.,fixed no of rows in print sheets

How to set the page settings in excel 97...
or is there any programtically to do.....

Thanx in advance..

with regs
Suresh




J.E. McGimpsey

How to print 25 rows on each page in Excel
 
One way:

Public Sub try()
Dim i As Long
Dim hpb As HPageBreak
With ActiveSheet
For i = 26 To .UsedRange.Rows.Count Step 25
.HPageBreaks.Add .Cells(i, 1)
Next i
End With
End Sub


In article ,
"Suresh" wrote:

Hi,

Can any body pl help me out

For suppose I have 1000 rows in my excel sheet.
My requirement is to get 25 rows in each page while
printing...

ie.,fixed no of rows in print sheets

How to set the page settings in excel 97...
or is there any programtically to do.....

Thanx in advance..

with regs
Suresh





All times are GMT +1. The time now is 11:39 PM.

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