View Single Post
  #2  
Old May 16th 08, 02:20 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,409
Default Close userform1?

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


Ads
 

Mortgage Calculator - Web Advertising - Facebook Proxy - Loans - Credit Card