Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Determine last row before end of page on worksheet

I am trying to develop some reports in Excel from VB6.0. The reports
have multiple records that can span several rows. Each record has a
commments field in it, so the height of a cell can very greatly from
record to record. What I am trying to figure out is an easy way to
determine what was the last row on a page in excel, so that when it
goes to a new page, it will reprint the title and the column names.
Currently I am calculating the height of every row and then based on if
the pagesetup is landscape or portrait, comparing that number to the
total height of the page to determine when the page ends...Is there a
simpler way to achieve this?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 88
Default Determine last row before end of page on worksheet

Have you tried setting the Rows to Repeat At Top property?
FilePageSetupSheetRows To Repeat at Top

Hope this helps
Rowan

dclarkston wrote:
I am trying to develop some reports in Excel from VB6.0. The reports
have multiple records that can span several rows. Each record has a
commments field in it, so the height of a cell can very greatly from
record to record. What I am trying to figure out is an easy way to
determine what was the last row on a page in excel, so that when it
goes to a new page, it will reprint the title and the column names.
Currently I am calculating the height of every row and then based on if
the pagesetup is landscape or portrait, comparing that number to the
total height of the page to determine when the page ends...Is there a
simpler way to achieve this?

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
Macro to determine row of page break on modified presentation sheet? pallaver Excel Discussion (Misc queries) 2 July 21st 08 06:05 AM
Converting a muliple page worksheet to a single page worksheet [email protected] Excel Discussion (Misc queries) 2 June 30th 05 09:40 PM
Determine page which row will print on Fred Smith Excel Programming 0 July 22nd 04 05:49 AM
determine page number in Word document Cath Victor Excel Programming 0 July 13th 03 08:39 AM
Determine maximum length of a page Vasant Nanavati[_2_] Excel Programming 0 July 12th 03 03:20 AM


All times are GMT +1. The time now is 06:54 AM.

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

About Us

"It's about Microsoft Excel"