Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default select down to the LAST non empty row

Hi,dabith £º

You Can Try This Code With VBA to get the lastrow who is not empty:

lastrow=Range("a65536").End(XLup).row

*example for columns A

--

³ÂÏ£ÕÂ@Öйú

*ÇîÇÒ¶ÀÉÆÆäÉí**´ïÔò¼æ¼ÃÌìÏÂ*



"dabith " wrote in message
...
| hey all
|
| hoping someone can help a newbie to VBA
|
| i want to select a range of entire rows down to the *last* non-empty
| entire row. There may exist a few empty rows, but i want to skip these
| to get to the very last row with data in it (regardless of columns).
|
| I have looked at xlDown command but I dont know how to skip the empty
| rows in between.
|
| thanks
|
|
| ---
| Message posted from http://www.ExcelForum.com/
|


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
Select first empty row in a column Tdungate Excel Discussion (Misc queries) 9 February 5th 09 05:28 PM
select next empty row Ron_C New Users to Excel 2 February 20th 07 06:07 PM
How to select cells with values only (not empty ones)? nick Excel Discussion (Misc queries) 4 December 20th 06 09:07 PM
How to select cells with values only (not empty ones)? nick Excel Discussion (Misc queries) 1 December 20th 06 06:03 PM
select next empty cell ASU Excel Discussion (Misc queries) 0 September 15th 06 08:01 PM


All times are GMT +1. The time now is 01:14 PM.

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"