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


what code can i use to close a form?

I have a macro that opens a form. when i enter data into the form then
hit enter, code runs. when the code finishes running, i want the form
to close.
i assume i would put this as the last line of the code after i hit
enter. but what would the code be?


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

  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

You have a reply to your other post that, by chance, closes a userform.



tkaplan wrote:

what code can i use to close a form?

I have a macro that opens a form. when i enter data into the form then
hit enter, code runs. when the code finishes running, i want the form
to close.
i assume i would put this as the last line of the code after i hit
enter. but what would the code be?

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


--

Dave Peterson
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
User Form Code mully New Users to Excel 9 May 22nd 05 07:54 PM
Make Change Case in Excel a format rather than formula Kevin Excel Worksheet Functions 1 March 18th 05 08:53 PM
Opening a file with code without a set file name jenkinspat Excel Discussion (Misc queries) 1 March 4th 05 10:50 AM
Opening a file with code without a set file name jenkinspat Excel Discussion (Misc queries) 1 March 3rd 05 03:40 PM
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:46 PM.

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"