LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 414
Default PrintTitleRows 2

Ok, I've got the intitial elements working.

Do Until Selection.Interior.ColorIndex < -4142
ActiveCell.Offset(1, 0).Select

Loop

If Selection.Interior.ColorIndex < -4142 Then

'how do I define the last row selected?
'I tried the following and get a 1004 error.

range("$1: ActiveCell.EntireRow.cells()").Select
' I've also tried: range("$1:entirerow.cells()").select
' and range("$1:entirerow").select
' none of those work, and all throw a 1004 error.

End If

My goal now is to place the last row selected in the do loop into a
range().select (or a better choice) function so I can define the
PrintTitleRows element of PageSetUp

With ActiveSheet.PageSetUp
.PrintTitleRows = ""
.PrintTitleColumns = ""
End With

comnponent.

How would I accomplish this?

Thank you.

 
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
PrintTitleRows SteveDB1 Excel Programming 4 March 11th 09 10:23 PM
.PrintTitleRows Dr. M Excel Programming 2 June 9th 05 09:24 PM
.PrintTitleRows Dr. M Excel Discussion (Misc queries) 2 June 7th 05 11:43 PM
how high is my PrintTitleRows hans[_3_] Excel Programming 1 November 22nd 04 10:55 AM
PrintTitleRows David Ponzio Excel Programming 2 October 9th 03 09:42 PM


All times are GMT +1. The time now is 03:26 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"