Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Forms / May 2008

Tip: Looking for answers? Try searching our database.

Close userform1?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ExcelLars - 15 May 2008 15:05 GMT
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
Ken Slovak - [MVP - Outlook] - 16 May 2008 14:20 GMT
A user form has neither of those methods, as you can see in the Object
Browser. Use Unload UserForm1.

Signature

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

>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
Lars.Oyangen@gmail.com - 17 May 2008 00:38 GMT
Thanks! it works!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.