Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Last Empty Row in Range

I have checked and seen many examples of how to find the last row in a column
by using

lastcell=.cells(.rows.count,1).end(xlUp)(2).select

However, that appears to look at the ENTIRE column. My data starts, say, in
row 15. How do I use the above code to look only at rows below row 15?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Last Empty Row in Range

See this page (Last function)
http://www.rondebruin.nl/last.htm


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"dunnerca" wrote in message ...
I have checked and seen many examples of how to find the last row in a column
by using

lastcell=.cells(.rows.count,1).end(xlUp)(2).select

However, that appears to look at the ENTIRE column. My data starts, say, in
row 15. How do I use the above code to look only at rows below row 15?

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Last Empty Row in Range

Thanks, Ron. Exactly what I needed.

Kevin

"Ron de Bruin" wrote:

See this page (Last function)
http://www.rondebruin.nl/last.htm


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"dunnerca" wrote in message ...
I have checked and seen many examples of how to find the last row in a column
by using

lastcell=.cells(.rows.count,1).end(xlUp)(2).select

However, that appears to look at the ENTIRE column. My data starts, say, in
row 15. How do I use the above code to look only at rows below row 15?

Thanks.


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
Range ... how to know if it is empty [email protected] Excel Programming 3 January 30th 06 03:23 PM
Finding next empty empty cell in a range of columns UncleBun Excel Programming 1 January 13th 06 11:22 PM
Range empty? Sige Excel Programming 18 September 23rd 05 02:16 PM
why is range empty? JT Excel Discussion (Misc queries) 1 March 9th 05 12:26 PM
why is range empty? JT[_2_] Excel Programming 3 March 9th 05 06:35 AM


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

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"