Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Search for string in a cell, then hilight the row

That's what I'm trying to do.

At this moment, I haven't found anything that really accomplishes this task
the way I'm attempting to have it work.

The string is this:
<userlevel1</userlevel1 OR
<userlevel163800</userlevel

So, I'm experiecing problems attempting to find that text in the cell--I've
already nailed down the hilighting portion.

Any ideas/suggestions?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Search for string in a cell, then hilight the row

Chris ,
Could you be more specific pls , and explain in more words what you have and
what you need.
I cannot get a clear view on this.

Is <userlevel</userlevel Or <userlevel163800</userlevel the value in
the cell ?
Do you use VBA to ccomplish this ?


"Chris C" wrote in message
...
That's what I'm trying to do.

At this moment, I haven't found anything that really accomplishes this
task
the way I'm attempting to have it work.

The string is this:
<userlevel1</userlevel1 OR
<userlevel163800</userlevel

So, I'm experiecing problems attempting to find that text in the
cell--I've
already nailed down the hilighting portion.

Any ideas/suggestions?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Search for string in a cell, then hilight the row

My apologies.

Basically, I have the code written to hilight the row, nothing needed that.
The cell can contain the following things:
<userlevel163800</userlevel1
<userlevel1<userlevel1
<userlevel263801</userlevel2
<userlevel2<userlevel2
<userlevel363802</userlevel3
<userlevel3<userlevel3

So, I need to check for two things [for all three combinations]:
1) That the user level tag exists or not
2) If the tag has any value.

The tag will sometimes be there with a value, sometimes without, sometimes
not there at all. It's not 100% consistent in the data. The data isn't VBA
generated--it comes from an excel import of a text file.

Does that clear everything up?

"MarMo" wrote:

Chris ,
Could you be more specific pls , and explain in more words what you have and
what you need.
I cannot get a clear view on this.

Is <userlevel</userlevel Or <userlevel163800</userlevel the value in
the cell ?
Do you use VBA to ccomplish this ?


"Chris C" wrote in message
...
That's what I'm trying to do.

At this moment, I haven't found anything that really accomplishes this
task
the way I'm attempting to have it work.

The string is this:
<userlevel1</userlevel1 OR
<userlevel163800</userlevel

So, I'm experiecing problems attempting to find that text in the
cell--I've
already nailed down the hilighting portion.

Any ideas/suggestions?

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Search for string in a cell, then hilight the row

Chris ,
Yes , thiscould help a lot.
Unfortunally i'll be going home now , but i'll try to post asap tomorrow (
if not already this evening from home)

Could you tell me what needs to be done in both cases or when all 3
combinations have been checked
for instance : tag is found = rowcolor is red
tag is not found = rowcolor is yellow
tag without value = rowcolor is blue



"Chris C" wrote in message
...
My apologies.

Basically, I have the code written to hilight the row, nothing needed
that.
The cell can contain the following things:
<userlevel163800</userlevel1
<userlevel1<userlevel1
<userlevel263801</userlevel2
<userlevel2<userlevel2
<userlevel363802</userlevel3
<userlevel3<userlevel3

So, I need to check for two things [for all three combinations]:
1) That the user level tag exists or not
2) If the tag has any value.

The tag will sometimes be there with a value, sometimes without, sometimes
not there at all. It's not 100% consistent in the data. The data isn't VBA
generated--it comes from an excel import of a text file.

Does that clear everything up?

"MarMo" wrote:

Chris ,
Could you be more specific pls , and explain in more words what you have
and
what you need.
I cannot get a clear view on this.

Is <userlevel</userlevel Or <userlevel163800</userlevel the value
in
the cell ?
Do you use VBA to ccomplish this ?


"Chris C" wrote in message
...
That's what I'm trying to do.

At this moment, I haven't found anything that really accomplishes this
task
the way I'm attempting to have it work.

The string is this:
<userlevel1</userlevel1 OR
<userlevel163800</userlevel

So, I'm experiecing problems attempting to find that text in the
cell--I've
already nailed down the hilighting portion.

Any ideas/suggestions?

Thanks






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Search for string in a cell, then hilight the row

I guess things can change color based on the combinations of levels. However,
it gets tricky because of situations such as the following example:

having:
<userlevel163800</userlevel1
<userlevel263801</userlevel2
<userlevel363802</userlevel3

means the same thing as having just this:
<userlevel363802</userlevel3

These are the rules
1. If it's just userlevel 1, then the level is 1
2. If it's userlevel 1 and 2, or just 2, then the level is 2
3. If it's userlevel 1 and 2 and 3, or just 3, then the level is 3

We don't have to do anything when none of them are there.

thanks,
chris

"MarMo" wrote:

Chris ,
Yes , thiscould help a lot.
Unfortunally i'll be going home now , but i'll try to post asap tomorrow (
if not already this evening from home)

Could you tell me what needs to be done in both cases or when all 3
combinations have been checked
for instance : tag is found = rowcolor is red
tag is not found = rowcolor is yellow
tag without value = rowcolor is blue



"Chris C" wrote in message
...
My apologies.

Basically, I have the code written to hilight the row, nothing needed
that.
The cell can contain the following things:
<userlevel163800</userlevel1
<userlevel1<userlevel1
<userlevel263801</userlevel2
<userlevel2<userlevel2
<userlevel363802</userlevel3
<userlevel3<userlevel3

So, I need to check for two things [for all three combinations]:
1) That the user level tag exists or not
2) If the tag has any value.

The tag will sometimes be there with a value, sometimes without, sometimes
not there at all. It's not 100% consistent in the data. The data isn't VBA
generated--it comes from an excel import of a text file.

Does that clear everything up?

"MarMo" wrote:

Chris ,
Could you be more specific pls , and explain in more words what you have
and
what you need.
I cannot get a clear view on this.

Is <userlevel</userlevel Or <userlevel163800</userlevel the value
in
the cell ?
Do you use VBA to ccomplish this ?


"Chris C" wrote in message
...
That's what I'm trying to do.

At this moment, I haven't found anything that really accomplishes this
task
the way I'm attempting to have it work.

The string is this:
<userlevel1</userlevel1 OR
<userlevel163800</userlevel

So, I'm experiecing problems attempting to find that text in the
cell--I've
already nailed down the hilighting portion.

Any ideas/suggestions?

Thanks








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Search for string in a cell, then hilight the row

Chris ,
pls correct me if i'm wrong
So this i how i see it :
if 1 cell contains the following string :
<userlevel163800</userlevel1<userlevel263801</userlevel2<userlevel363802</userlevel3
(do the "userlevel" strings are within < and ? )

you'll need to figure out what is the highest userlevel within this string
to take action .
Is this correct ?

I'll try to help if I can.
I'm not a super-expert like Bob Phillips , Tom Ogilvy or others like them ,
but i'd like to give it a try.
And maybe others are interested in helping you.
Mario

"Chris C" wrote in message
...
I guess things can change color based on the combinations of levels.
However,
it gets tricky because of situations such as the following example:

having:
<userlevel163800</userlevel1
<userlevel263801</userlevel2
<userlevel363802</userlevel3

means the same thing as having just this:
<userlevel363802</userlevel3

These are the rules
1. If it's just userlevel 1, then the level is 1
2. If it's userlevel 1 and 2, or just 2, then the level is 2
3. If it's userlevel 1 and 2 and 3, or just 3, then the level is 3

We don't have to do anything when none of them are there.

thanks,
chris

"MarMo" wrote:

Chris ,
Yes , thiscould help a lot.
Unfortunally i'll be going home now , but i'll try to post asap tomorrow
(
if not already this evening from home)

Could you tell me what needs to be done in both cases or when all 3
combinations have been checked
for instance : tag is found = rowcolor is red
tag is not found = rowcolor is yellow
tag without value = rowcolor is blue



"Chris C" wrote in message
...
My apologies.

Basically, I have the code written to hilight the row, nothing needed
that.
The cell can contain the following things:
<userlevel163800</userlevel1
<userlevel1<userlevel1
<userlevel263801</userlevel2
<userlevel2<userlevel2
<userlevel363802</userlevel3
<userlevel3<userlevel3

So, I need to check for two things [for all three combinations]:
1) That the user level tag exists or not
2) If the tag has any value.

The tag will sometimes be there with a value, sometimes without,
sometimes
not there at all. It's not 100% consistent in the data. The data isn't
VBA
generated--it comes from an excel import of a text file.

Does that clear everything up?

"MarMo" wrote:

Chris ,
Could you be more specific pls , and explain in more words what you
have
and
what you need.
I cannot get a clear view on this.

Is <userlevel</userlevel Or <userlevel163800</userlevel the
value
in
the cell ?
Do you use VBA to ccomplish this ?


"Chris C" wrote in message
...
That's what I'm trying to do.

At this moment, I haven't found anything that really accomplishes
this
task
the way I'm attempting to have it work.

The string is this:
<userlevel1</userlevel1 OR
<userlevel163800</userlevel

So, I'm experiecing problems attempting to find that text in the
cell--I've
already nailed down the hilighting portion.

Any ideas/suggestions?

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
Search for string of characters in a cell BRB Excel Discussion (Misc queries) 3 August 21st 08 07:44 PM
search a string withing a string : find / search hangs itarnak[_9_] Excel Programming 4 October 24th 05 03:19 PM
Hilight The Currently Active Cell xcelion Excel Programming 5 August 18th 05 02:32 PM
Search for a string sequence in a cell CLS Excel Programming 3 May 6th 05 09:31 PM
How to hilight the active cell Paul Excel Programming 0 August 4th 03 06:37 PM


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