A user form has neither of those methods, as you can see in the Object
Browser. Use Unload UserForm1.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"ExcelLars" wrote in message
...
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