Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to find cells that have conditional formatting in them.
I was thinking just to turn the cell a specific color. or something. But I am having a hard time finding them. For instance. I put a conditional formatting statment on a cell. then I select a bunch of cells then I perform the following: Dim x As Excel.Range Set x = Excel.Selection MsgBox x.FormatConditions.Count and I get -1 is there a way I can ID each cell in a sheet. that has conditional formatting? thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
you could try looping through the range cell by cell and using a counter:
for each y in x if y.formatconditions.count 0 then counter = counter + 1 next y msgbox counter hope that helps. -- Mike Lee McKinney,TX USA "greg" wrote: I am trying to find cells that have conditional formatting in them. I was thinking just to turn the cell a specific color. or something. But I am having a hard time finding them. For instance. I put a conditional formatting statment on a cell. then I select a bunch of cells then I perform the following: Dim x As Excel.Range Set x = Excel.Selection MsgBox x.FormatConditions.Count and I get -1 is there a way I can ID each cell in a sheet. that has conditional formatting? thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formatting cells in a column with conditional formatting? | Excel Discussion (Misc queries) | |||
Conditional Formatting; finding numerical data in mixed text. | Excel Discussion (Misc queries) | |||
Trouble Finding Duplicate Values with Conditional Formatting | Excel Discussion (Misc queries) | |||
Finding data validation and conditional formatting | Excel Discussion (Misc queries) | |||
Conditional Formatting Multiple cells based on 2 cells | Excel Worksheet Functions |