Close userform1?

E

ExcelLars

I have a commandobutton that i what to close a userform.
This code will not work:
Private Sub CommandButton9_Click()
userform1.close
userform1.unload
End Sub
 
K

Ken Slovak - [MVP - Outlook]

A user form has neither of those methods, as you can see in the Object
Browser. Use Unload UserForm1.
 

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

Top