Hello,

 

Use the following macro :

 

Sub test1()

[K21].FormatConditions(1).Delete

With [K21:V130]

    .FormatConditions.Add xlCellValue, xlGreater,
"=SI(K$20=""c"";$F21;$G21)"

    .FormatConditions(1).Font.ColorIndex = 2

    .FormatConditions(1).Interior.ColorIndex = 1

    .FormatConditions(1).StopIfTrue = True

End With

End Sub

 

Regards.

Daniel

 

De : excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] De
la part de Nuria Gimenez
Envoyé : mercredi 16 février 2011 10:46
À : excel-macros@googlegroups.com
Objet : $$Excel-Macros$$ $$Excel Macros$$ help me regarding copy only
conditional formating with formula & extending formula.

 

Dear all,
 
 
In a big table I need that all cells changes it color,  depending formula , 
 
cell under study (file, row)
 
if (row$20="c";$Ffile;$Gfile) 
 
I want to extend the conditional format to all the table but without change
all the other formants, 
 


 
Thanks and best regards
 
 
 

-- 
Nuria

-- 
Nuria

-- 
----------------------------------------------------------------------------
------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links :
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com

To post to this group, send email to excel-macros@googlegroups.com
 
<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel

-- 
----------------------------------------------------------------------------------
Some important links for excel users:
1. Follow us on TWITTER for tips tricks and links : 
http://twitter.com/exceldailytip
2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310
3. Excel tutorials at http://www.excel-macros.blogspot.com
4. Learn VBA Macros at http://www.quickvba.blogspot.com
5. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 
To post to this group, send email to excel-macros@googlegroups.com

<><><><><><><><><><><><><><><><><><><><><><>
Like our page on facebook , Just follow below link
http://www.facebook.com/discussexcel

Reply via email to