Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I print repeating rows on every page when printing? mamallama Excel Discussion (Misc queries) 3 March 9th 06 12:24 AM
print first two rows (heading) and one row per page... gooba937 Excel Discussion (Misc queries) 1 October 26th 05 04:06 AM
How to print 2 worksheets (different col/rows) on the same page lindag Excel Worksheet Functions 1 July 6th 05 03:00 PM
How can I print noncontiguous rows on the same page? Mary A Walthall Excel Discussion (Misc queries) 1 April 26th 05 10:00 AM
make first few rows print on every page? CD New Users to Excel 3 January 3rd 05 06:07 AM


All times are GMT +1. The time now is 02:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"