>I tried to do the following where oRef is an object reference Dim'd elsewhere :
>
>If oRef = Nothing Then
> Set oRef = New Object
>End If
>
>
>But it gives me an error. What is there correct way to see if an object reference is a valid object or has not been assigned/created yet? Thanks,
If oRef Is Nothing Then
.. etc.