View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
chris c chris c is offline
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