Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to unload a form in excel vba?

What is needed in VBA to unload a form from the screen
when I click the cancel button?

Thanks in advance

Edward

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default How to unload a form in excel vba?

Hi edward

A macro with this line
Unload Me

More info on this page
http://support.microsoft.com/default...b;EN-US;829070


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Edward" wrote in message ...
What is needed in VBA to unload a form from the screen
when I click the cancel button?

Thanks in advance

Edward



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to unload a form in excel vba?


A simple way is to put this line in your button's code:

Private Sub CommandButton1_Click()
Unload Me
End Sub



Edward Wrote:
What is needed in VBA to unload a form from the screen
when I click the cancel button?

Thanks in advance

Edwar


--
madblok
-----------------------------------------------------------------------
madbloke's Profile: http://www.excelforum.com/member.php...fo&userid=1442
View this thread: http://www.excelforum.com/showthread.php?threadid=26511

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I remove (not unload) a user installed Excel add-in ? bill h Excel Discussion (Misc queries) 1 March 1st 10 09:16 PM
Unload the form on esc key Papou Excel Programming 0 August 10th 04 05:15 PM
Load and Unload Form commands R Avery Excel Programming 4 July 29th 04 03:16 PM
form won't unload inquirer Excel Programming 1 May 26th 04 09:55 AM
Form Unload Khai[_2_] Excel Programming 0 August 4th 03 09:28 PM


All times are GMT +1. The time now is 02:22 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"