ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Simple Exit-the-program (https://www.excelbanter.com/excel-programming/299817-simple-exit-program.html)

Gee[_2_]

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

Frank Kabel

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


Gee[_2_]

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
.



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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com