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: 1
Default how to select range when no. of rows depends from text place ??

How to find text in worksheet and get the address of this cell ?

My example:
A B C D
1 x c
2 x c
3 x c
4 x c
5 y
I'm interested to select range "A1":"XY"
where the XY should be always before the y, so I need to find a text
"y" and read the address of this cell and passed it to
Range("A1":XY).select
in this case it will be range ("A1":"B4")

but below 1 - will be ("A1":"B3") ; 2 - will be ("A5":"B9")
A B C D
1 x c
2 x c
3 x c
4 y
5 x c
6 x c
7 x c
8 x c
9 x c
10 y
 
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
Return Value from a Range (depends on input to determind month) Tony Excel Worksheet Functions 2 March 31st 10 03:58 PM
Add Rows depends on the number in a cell Elton Law[_2_] Excel Worksheet Functions 1 April 11th 09 12:04 PM
How can change range to select active rows instead of :=Range("S10 ldiaz Excel Discussion (Misc queries) 7 August 29th 08 03:52 PM
Select always same Rows range Nauj Solrac Excel Discussion (Misc queries) 2 April 26th 07 08:10 PM
How do I place Range text into a header? Brad Excel Worksheet Functions 1 January 12th 07 01:46 AM


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