Using VBA to exit out of Excel

Brott

Board Regular
Joined
Dec 12, 2002
Messages
110
I search the archives and either I was asking the wrong question or it is not already out there.

I am looking to execute a button and have not only the workbook close but I want to exit out of Excel all together.

I already have the file being saved and exporting data, I would like to just close it now.

Thanks everyone for reading this and thank you for answering it.
 

Some videos you may like

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
75,918
Office Version
  1. 365
Platform
  1. Windows
Try this.
Code:
Application.Quit
 

Brott

Board Regular
Joined
Dec 12, 2002
Messages
110
Thanks a bunch, I knew it was going to be that easy.
 

Watch MrExcel Video

Forum statistics

Threads
1,114,052
Messages
5,545,735
Members
410,703
Latest member
yaronjoseph
Top