A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: ,

Close userform1?





 
 
Thread Tools Display Modes
  #1  
Old May 15th 08, 04:05 PM posted to microsoft.public.outlook.program_forms
ExcelLars
external usenet poster
 
Posts: 18
Default Close userform1?

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
  #2  
Old May 16th 08, 03:20 PM posted to microsoft.public.outlook.program_forms
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,778
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


  #3  
Old May 17th 08, 01:38 AM posted to microsoft.public.outlook.program_forms
Lars.Oyangen@gmail.com
external usenet poster
 
Posts: 1
Default Close userform1?

Thanks! it works!
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant start new e-mail when Userform1 are open ExcelLars Outlook - Using Forms 1 May 14th 08 11:15 AM
Close a Excel Workbook when close a userform in Outlook lars.oyangen@hamstad.no Outlook and VBA 2 May 8th 08 03:54 PM
Why is the "X" used for delete so close to the "save and close"? Carol Outlook - Using Contacts 3 July 29th 07 04:31 AM
Close Message, Close Outlook cdf Outlook - General Queries 2 April 16th 07 04:42 PM
OE doesn't close Andre De Clercq Outlook Express 2 April 13th 07 03:45 AM


All times are GMT +1. The time now is 12:54 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Credit Cards - Credit Cards - Credit Cards - Remortgages - Credit Card