Me.Hide doesn't close the userform it hides it.
You don't need that code anywhere.
To close the form you need to add another button outside the frame.
Then you can use this code to close the form.
![]()
Private Sub cmdClose_Click() Unload Me End Sub
Bookmarks