Hello!
I'm trying to figure out how to conditional format cells with particular text in the comment section. If the comments say "Ad" then I would like the box to turn red and if the comments say "TPR" then I want it to turn blue, and if the comments say "Both", then it would turn green.
I used this VBA Code, but it's turning every cell blue if it has a comment....help please
Sub HighlightCommentCells()
On Error Resume Next
ActiveSheet.UsedRange.SpecialCells(xlCellTypeComments).Interior.Color = vbBlue
On Error GoTo 0
End Sub
I'm trying to figure out how to conditional format cells with particular text in the comment section. If the comments say "Ad" then I would like the box to turn red and if the comments say "TPR" then I want it to turn blue, and if the comments say "Both", then it would turn green.
I used this VBA Code, but it's turning every cell blue if it has a comment....help please

Sub HighlightCommentCells()
On Error Resume Next
ActiveSheet.UsedRange.SpecialCells(xlCellTypeComments).Interior.Color = vbBlue
On Error GoTo 0
End Sub