Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Finding the text written in specific color

Now here is the problem
i have diff. heading in column and diff. sub headings in the same
column and all sub headings in diff color. now if i give a range of
data in col. a and sub heading in row 10 then it goes on moving to find
that heading till it reaches the text with diff color.

To make it clear here is the example.

A B C
1 Shirt Qty Jeans Trouser
2 Arrow Levis Arrow
3 32
4 34
5 36
10 Lee Couper

20 Denim J.K

Now in this the main title is Shirt and sub heading is Arrow.and there
are sizes in it now if i select cell b3 as the value(Qty) then it
should automatically type in other sheet(already done that part) the
size and (now the part for which help needed) also give the sub heading
which is in Blue color(Arrow).

Hope the example is clear. So .pls help me in this

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Finding the text written in specific color

Dim rng as Range
set rng = activecell
Do while isnumeric(rng) and rng.row 1
set rng = rng.offset(-1,0)
Loop
if not isnumeric(rng) then
' rng should point to the cell with "Arrow"
End if

--
Regards,
Tom Ogilvy

"Jimish" wrote:

Now here is the problem
i have diff. heading in column and diff. sub headings in the same
column and all sub headings in diff color. now if i give a range of
data in col. a and sub heading in row 10 then it goes on moving to find
that heading till it reaches the text with diff color.

To make it clear here is the example.

A B C
1 Shirt Qty Jeans Trouser
2 Arrow Levis Arrow
3 32
4 34
5 36
10 Lee Couper

20 Denim J.K

Now in this the main title is Shirt and sub heading is Arrow.and there
are sizes in it now if i select cell b3 as the value(Qty) then it
should automatically type in other sheet(already done that part) the
size and (now the part for which help needed) also give the sub heading
which is in Blue color(Arrow).

Hope the example is clear. So .pls help me in this


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
Finding specific text in one cell and returning data from another Klee Excel Worksheet Functions 8 April 2nd 09 08:49 PM
Finding specific text in ranges timmulla Excel Discussion (Misc queries) 3 January 24th 07 06:01 PM
Finding specific text in string - Part II Hardip Excel Worksheet Functions 1 April 8th 06 02:20 PM
Finding specific text in a string Hardip Excel Worksheet Functions 5 April 8th 06 01:16 PM
Finding Specific Text in a Text String Peter Gundrum Excel Worksheet Functions 9 April 10th 05 07:21 PM


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