Hello,

I made some code to tell it a
object variable was set that is
pritty basic, but to tell it the
object is set, it develops a error.

how can I do this without a error?

Code:
 
Private Function ObjectSet(ByVal Obj As Object) As Boolean
    On Error GoTo ItsNotSet
    
if obj = 1 then 
'object set
end if

    NotSet = true
    Exit Function

ItsNotSet:
    NotSet = false
End Function