Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
Hi Paul,
Option Explicit Public Function AllIsRed(rng As Range) As Boolean Dim rngcell As Range Application.Volatile AllIsRed = True For Each rngcell In rng If rngcell.Font.ColorIndex < 3 Then AllIsRed = False Exit Function End If Next End Function Public Function AnyIsRed(rng As Range) As Boolean Dim rngcell As Range Application.Volatile AnyIsRed = False For Each rngcell In rng If rngcell.Font.ColorIndex = 3 Then AnyIsRed = True Exit Function End If Next End Function HTH, Bernd |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Order of selecting unprotected cells | Excel Discussion (Misc queries) | |||
Searching for a criteria in array of cells within an IF statement | Excel Worksheet Functions | |||
how do you "select locked cells" w/o "select unlocked cells"? | Excel Discussion (Misc queries) | |||
Blank Cells in Pivot Tables | Excel Discussion (Misc queries) | |||
Can I count how many grey-filled cells are in a row ? | Excel Worksheet Functions |