You need to cater for none being found, and test for Nothing not True. And
best to use the builtin constant, not its value
Dim rng As Range
On Error Resume Next
Set rng = ActiveSheet.UsedRange.SpecialCells(xlCellTypeComments)
On Error GoTo 0
If Not rng Is Nothing Then
MsgBox "comments"
End If