Sorry forgot to mention once your conditions are met.. use
Activesheet.Tab.ColorIndex
= 4 (or) Activesheet.Tab.ColorIndex = 2 accordingly. Article shows how to
color the cells not the tabs.

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