Hello,
I need help.
Output : Range of cell change color when cell contains specific Value and comments
the code below not working
Thank you.
I need help.
Output : Range of cell change color when cell contains specific Value and comments
the code below not working
VBA Code:
Dim cell As Range
' Set the range where you want to apply the conditional formatting
Set rng = Range("A1:A10") ' Change this range as needed
For Each cell In rng
If cell.Value = "SpecificValue" And cell.Comment IsNot Nothing Then
cell.Interior.Color = RGB(255, 0, 0) ' Change color as needed
End If
Next cell
End Sub
Thank you.