#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default close form

Supose I want to close a form. I put an EXIT buttion on the form. I just
want to close the form, no checking just unload or close the form

How do I do this in Excel 2007. What simple code goes in the button command
sub?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default close form

Unload Me


Jacob
(If this post helps please hit Yes)

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default close form

thats what I thought, but it does not work. Niether does frmMain.close.
2007 is a different animal.


"Jacob Skaria" wrote in message
...
Unload Me


Jacob
(If this post helps please hit Yes)



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default close form

It works in xl2007, your original post asking how to do was answered. You
have a different question as to why is does not work, so describe your
environment.

--

Regards,
Nigel




"Striker" wrote in message
...
thats what I thought, but it does not work. Niether does frmMain.close.
2007 is a different animal.


"Jacob Skaria" wrote in message
...
Unload Me


Jacob
(If this post helps please hit Yes)




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default close form

There are some differences in Excel2007, but not that much in VBA. Unload Me
should work if the code is in the form's code module. If you post the code
that is not working, it is easier for those offering assistance to see where
the problem might be.

"Striker" wrote:

thats what I thought, but it does not work. Niether does frmMain.close.
2007 is a different animal.


"Jacob Skaria" wrote in message
...
Unload Me


Jacob
(If this post helps please hit Yes)






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default close form

OK, looks like I had a dot in there, that did not need to be there.
(Unload.Me) My memory must be failing me this is the way I rememberd it
from years past. Obviously I didn't remember it correct.

Thanks


"Nigel" wrote in message
...
It works in xl2007, your original post asking how to do was answered. You
have a different question as to why is does not work, so describe your
environment.

--

Regards,
Nigel




"Striker" wrote in message
...
thats what I thought, but it does not work. Niether does frmMain.close.
2007 is a different animal.


"Jacob Skaria" wrote in message
...
Unload Me


Jacob
(If this post helps please hit Yes)






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
Close Form SpeeD Excel Programming 4 February 14th 09 01:19 AM
Form.Close kirkm[_8_] Excel Programming 6 February 10th 09 07:32 AM
Close a form when you click outside of the form Alex St-Pierre Excel Programming 1 June 19th 08 10:57 PM
Call user form from ThisWorkbook; close file if form closed XP Excel Programming 2 July 20th 07 07:04 PM
close .chm with form ckoch Excel Programming 2 May 9th 06 07:49 PM


All times are GMT +1. The time now is 09:35 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"