Hi All,
I've got the following code:
Sub ratings()
Dim sh As Worksheet
Dim cell As Range
Application.ScreenUpdating = False
For Each sh In ActiveWorkbook.Sheets
sh.Activate
For Each cell In Range("a1:m46")
If cell.Interior.ColorIndex = 35 Then
cell.Select
'rest of the code is irrelevant
End If
Next
Next sh
Application.ScreenUpdating = True
End Sub
This one checks whether the cell color is green, if that's true the cells contents are evaluated in a rating system. That works great.
The problem is that the cell color is often determined via conditional formatting and the above code snipet ignores this. My question is how to adapt the above code to recognize cell colors wich are colored by conditional formatting.
Any ideas?
Thanks for your help,
Kind regards
WD
I've got the following code:
Sub ratings()
Dim sh As Worksheet
Dim cell As Range
Application.ScreenUpdating = False
For Each sh In ActiveWorkbook.Sheets
sh.Activate
For Each cell In Range("a1:m46")
If cell.Interior.ColorIndex = 35 Then
cell.Select
'rest of the code is irrelevant
End If
Next
Next sh
Application.ScreenUpdating = True
End Sub
This one checks whether the cell color is green, if that's true the cells contents are evaluated in a rating system. That works great.
The problem is that the cell color is often determined via conditional formatting and the above code snipet ignores this. My question is how to adapt the above code to recognize cell colors wich are colored by conditional formatting.
Any ideas?
Thanks for your help,
Kind regards
WD