Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel 2000 VBA - Selecting populated range

I have the following worksheet:

5 columns x ~100 rows

Already sorted by Column E in ascending order

Column E is null after the first ~10 rows.

I want to Select the range of rows where E is not null (usually abou
the first 10 rows)

I tried creating a counter in the loop that populates column E one ro
at a time then selecting it by:

Range("A1:E" & counter).Select
or by Range("A1,E" & counter).Select
then I tried Range("1:" & counter).Select etc.

This does nothing. Any help is appreciated!

Mar

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel 2000 VBA - Selecting populated range

Range("E1",Cells(rows.count,5).End(xlup)).offset(0 ,-4).Resize(,5).Select
--
Regards,
Tom Ogilvy


"sub_pop " wrote in message
...
I have the following worksheet:

5 columns x ~100 rows

Already sorted by Column E in ascending order

Column E is null after the first ~10 rows.

I want to Select the range of rows where E is not null (usually about
the first 10 rows)

I tried creating a counter in the loop that populates column E one row
at a time then selecting it by:

Range("A1:E" & counter).Select
or by Range("A1,E" & counter).Select
then I tried Range("1:" & counter).Select etc.

This does nothing. Any help is appreciated!

Marc


---
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
find last populated cell in range of cells Maximus[_2_] Excel Worksheet Functions 6 July 22nd 09 04:31 PM
Find the first or last populated column in a range Commish Excel Worksheet Functions 6 May 14th 09 10:16 PM
excel 2007- when selecting a range to edit, it has no highlight MGOETZ Excel Discussion (Misc queries) 1 May 14th 08 08:19 PM
LookUp to Display Last Value Populated a in Range sony654 Excel Worksheet Functions 13 May 11th 08 05:46 AM
Populated Cells In A Named Range Bob Barnes[_3_] Excel Programming 3 May 6th 04 05:38 PM


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