Userform Exit button

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello.
I want to re-programme the X button on a userform to alter the behaviour of
the button. I want to close the application instead of closing the form.

How can i do this?
 
Private Sub UserForm_Terminate()
Application.Quit
End Sub

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top