Hi,
Need an answer to a simple question please. Both statements below work, but why is it that whenever I read topics on this, people always use "If NOT c is Nothing"? Is there an advantage of writing it this way?
Example A:
Example B:
Thanks!
Need an answer to a simple question please. Both statements below work, but why is it that whenever I read topics on this, people always use "If NOT c is Nothing"? Is there an advantage of writing it this way?
Example A:
Code:
Set c = Cells.Find("Dave")
If Not c Is Nothing Then
MsgBox "found"
Else
MsgBox "not Found"
End If
Example B:
Code:
Set c = Cells.Find("Dave")
If c Is Nothing Then
MsgBox "not found"
Else
MsgBox "found"
End If
Thanks!