#1   Report Post  
tkaplan
 
Posts: n/a
Default terminate a form


what is the coding to close a form:
user form named frmCenter. on click event of button i want to terminate
frmCenter.

Thanks in advance.


--
tkaplan
------------------------------------------------------------------------
tkaplan's Profile: http://www.excelforum.com/member.php...o&userid=22987
View this thread: http://www.excelforum.com/showthread...hreadid=478322

  #2   Report Post  
Anne Troy
 
Posts: n/a
Default terminate a form

frmCenter.Hide
************
Anne Troy
www.OfficeArticles.com

"tkaplan" wrote in
message ...

what is the coding to close a form:
user form named frmCenter. on click event of button i want to terminate
frmCenter.

Thanks in advance.


--
tkaplan
------------------------------------------------------------------------
tkaplan's Profile:
http://www.excelforum.com/member.php...o&userid=22987
View this thread: http://www.excelforum.com/showthread...hreadid=478322



  #3   Report Post  
tkaplan
 
Posts: n/a
Default terminate a form


FYI - i tried:
frmCenter.close
frmCenter.exit
frmCenter.terminate

none of these worked. frmCenter.hide is not an option because there is
code in the on terminate event.


--
tkaplan
------------------------------------------------------------------------
tkaplan's Profile: http://www.excelforum.com/member.php...o&userid=22987
View this thread: http://www.excelforum.com/showthread...hreadid=478322

  #4   Report Post  
tkaplan
 
Posts: n/a
Default terminate a form


.hide just hides it- it is not equivilant to hitting the x in the
corner. I have code that is running off of the on terminate event so
this wont do it.


--
tkaplan
------------------------------------------------------------------------
tkaplan's Profile: http://www.excelforum.com/member.php...o&userid=22987
View this thread: http://www.excelforum.com/showthread...hreadid=478322

  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default terminate a form

Unload me

?????



tkaplan wrote:

what is the coding to close a form:
user form named frmCenter. on click event of button i want to terminate
frmCenter.

Thanks in advance.

--
tkaplan
------------------------------------------------------------------------
tkaplan's Profile: http://www.excelforum.com/member.php...o&userid=22987
View this thread: http://www.excelforum.com/showthread...hreadid=478322


--

Dave Peterson


  #6   Report Post  
tkaplan
 
Posts: n/a
Default terminate a form


Thank you!

That did it:)


--
tkaplan
------------------------------------------------------------------------
tkaplan's Profile: http://www.excelforum.com/member.php...o&userid=22987
View this thread: http://www.excelforum.com/showthread...hreadid=478322

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 can I make a form number change everytime the form is opened babydumplingspita Excel Worksheet Functions 1 October 10th 05 07:58 PM
Passing variables between a form and macro David New Users to Excel 4 September 23rd 05 11:57 AM
Display form from an VB application in Excel kuhni Excel Discussion (Misc queries) 0 August 10th 05 06:04 PM
Worksheet form design rgarber50 Excel Discussion (Misc queries) 4 August 7th 05 05:09 AM
Trying to delete form border, and it deletes all borders PeterM Excel Discussion (Misc queries) 11 January 3rd 05 03:36 PM


All times are GMT +1. The time now is 05:25 AM.

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

About Us

"It's about Microsoft Excel"