Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Simple Exit-the-program

I'm feeling like an idiot 'cause all I need it for Excel
to close when I hit a button.

Private Sub CommandButton21_Click()

What goes inbetween these two to get the dang program to
exit?

End Sub

Thank you for any help you can give me. I'm learning this
as I go.
Gee
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Simple Exit-the-program

Hi
application.quit

--
Regards
Frank Kabel
Frankfurt, Germany


Gee wrote:
I'm feeling like an idiot 'cause all I need it for Excel
to close when I hit a button.

Private Sub CommandButton21_Click()

What goes inbetween these two to get the dang program to
exit?

End Sub

Thank you for any help you can give me. I'm learning this
as I go.
Gee

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Simple Exit-the-program

Never mind I got it...Application.Quit...I knew it was
easy and I was having some kind of mental block.

-----Original Message-----
I'm feeling like an idiot 'cause all I need it for Excel
to close when I hit a button.

Private Sub CommandButton21_Click()

What goes inbetween these two to get the dang program to
exit?

End Sub

Thank you for any help you can give me. I'm learning

this
as I go.
Gee
.

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
"X" at upper right of window to exit program is grayed out. Robert Excel Discussion (Misc queries) 3 September 2nd 08 10:48 PM
how to create a macro button to exit a program PACEBIT0708 Excel Worksheet Functions 1 April 23rd 08 04:43 PM
How can I exit a workbook in Excel without closing the program? cosborn Excel Discussion (Misc queries) 1 September 21st 06 09:19 PM
Can only exit the program from the file menu Chuck Bowser Excel Discussion (Misc queries) 1 April 11th 06 03:08 PM
excel application does not shut down after program exit G.D Excel Programming 1 February 23rd 04 05:02 PM


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