Close userform1?

  • Thread starter Thread starter ExcelLars
  • Start date Start date
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
 
A user form has neither of those methods, as you can see in the Object
Browser. Use Unload UserForm1.
 
Back
Top