I close a userform when the user clicks the x:
The problem is that the form still seems to be active somewhere. When the user clicks a button it first checks to see if the userform is active before loading. The form is not equal to nothing, as it is prior to initially loading.
Why, after closing the form with the first block of code, would the if test above return true?
Thanks
Code:
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
Unload userformNav
'Unload me ' also tried this
End Sub
Code:
If (userformNav Is Nothing = False) Then
MsgBox "program already running"
Exit Sub
End If
Thanks