View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
John Bundy John Bundy is offline
external usenet poster
 
Posts: 125
Default Is it possible to exit Excel completely from a macro?

Application.quit

if you want to save stuff first
For Each w In Application.Workbooks
w.Save
Next w
Application.Quit

--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"salt417" wrote:

I'm trying to run a auto open macro that will open a second workbook, save
data there and then shut down Excel completely. Is this possible?