Hi,The below article should get you started
http://funwithexcel.blogspot.com/2009/04/macro-for-conditional-formatting-in.html
I have shown clearly how numbers / strings / conditions handled (colored)
using macros. Tweak the code according to your requirements. As far as I
remember color index of Red is 4 and Green is 2.
hope this helps.

On Fri, May 22, 2009 at 4:42 PM, Aindril De <aind...@gmail.com> wrote:

> Hi Can you send a sample sheet please
>
> Regards,
> Andy
>
> On Fri, May 22, 2009 at 4:02 PM, Mehdi_21 <meh.i...@gmail.com> wrote:
>
>>
>> hey everyone,
>>
>> how can i write a macro that colors sheet tab into "red" if:
>>
>> 1) sheet contains "zero" string
>> 2) sheet contains "nine" string
>> 3) sheet contains "nine" AND "zero" strings
>> 4) sheet contains "nine" OR "zero" strings
>>
>> otherwise sheet tab color turns into "Green"
>>
>> thanks in advance for your help
>> regards
>>
>>
>>
>
> >
>


-- 
http://funwithexcel.blogspot.com/

--~--~---------~--~----~------------~-------~--~----~
-------------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com
-------------------------------------------------------------------------------------
-~----------~----~----~----~------~----~------~--~---

Reply via email to