Re: Conditional formatting code wont work
- From: "Patrick Molloy" <patrick_molloy@xxxxxxxxxxx>
- Date: Sun, 5 Jun 2005 19:44:22 +0100
I recently answered a similar question with a full code example. try
searching this NG
"Robert Hargreaves" <nrgsav@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:42a33353$1_4@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi I am trying to code my conditional formatting as I have more than 3
> clauses to use.
>
> I cant seem to get the code to work no matter what I name the sub. What
> do I need to name it?
>
> Select Case ActiveCell.Value
> Case > namedrange1 And < namedrange2
> Selection.Interior.ColorIndex = 6
> Case >namedrange2 And <namedrange 3
> Selection.Interior.ColorIndex = 5
> End Select
>
> If I need to write some more code what would it include?
>
> Thanks for your help.
> Rob
>
>
.
- Follow-Ups:
- Re: Conditional formatting code wont work
- From: Nick Hebb
- Re: Conditional formatting code wont work
- References:
- Conditional formatting code wont work
- From: Robert Hargreaves
- Conditional formatting code wont work
- Prev by Date: Re: Excel Macro
- Next by Date: variable range
- Previous by thread: Re: Conditional formatting code wont work
- Next by thread: Re: Conditional formatting code wont work
- Index(es):
Relevant Pages
|