Knowledge Base Article

VB: Check if Object is valid

It is good practice to test whether an object (typically returned by another function) is empty, before performing some operation on it:

'Substitute thisObject with your object's name
If thisObject IsNot Nothing Then
   '...
End If
Updated 2 years ago
Version 4.0