Then you post, please always indicate WHAT the error is. Also post your
actual code, not a hand-typed version of it.
However ...
Private Sub CommandButton1_Click()
If ActiveCell.Comment Is Nothing Then
MsgBox ("empty")
Else
MsgBox (ActiveCell.Comment.Text)
End If
End Sub