ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How do I locate cells who have conditional formats activated? (https://www.excelbanter.com/excel-programming/358752-how-do-i-locate-cells-who-have-conditional-formats-activated.html)

HamFlyer

How do I locate cells who have conditional formats activated?
 
I have a large spreadsheet that has some cells changed to RED interior. I
need to be able to find these cells using a macro or VBA.

Duke Carey

How do I locate cells who have conditional formats activated?
 
Sub Find_CF()

Dim rng As Range
Dim cc As Range

Set rng = ActiveSheet.UsedRange
For Each cc In rng
If cc.FormatConditions.Count 0 Then
'this cell has conditional formatting
' so handle it here

End If
Next

End Sub



"HamFlyer" wrote:

I have a large spreadsheet that has some cells changed to RED interior. I
need to be able to find these cells using a macro or VBA.


Bob Phillips[_6_]

How do I locate cells who have conditional formats activated?
 
You can either check if a cell meets the CF criteria, or look at the
technique shown in http://www.xldynamic.com/source/xld.CFConditions.html

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"HamFlyer" wrote in message
...
I have a large spreadsheet that has some cells changed to RED interior. I
need to be able to find these cells using a macro or VBA.




[email protected]

How do I locate cells who have conditional formats activated?
 
Go to the Edit Menu / GoTo / Special / mark conditional format. All
your cells with CF will turn to black background and you can reformat
them while they are highlighted. ed



All times are GMT +1. The time now is 05:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com