How to validate if an object variable has been instanciated ? (Value different form Nothing)
Printable View
How to validate if an object variable has been instanciated ? (Value different form Nothing)
Private obj As Object
Private Sub CheckObject()
If obj Is Nothing Then
MsgBox "Nothing"
Else
MsgBox "Something"
End If
End Sub
Regards,
Michi