View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Robert Black Robert Black is offline
external usenet poster
 
Posts: 4
Default Quit Application

Do the application.quit only
"Bin" wrote in message
...
I am using an AUTORUN Macro with a form. An EXIT bottong
is used to terminate Macro and Quit from Excel totaly.
What code should I use to achive it? I tried

Activeworkbooks.Close
Application.Quit
Workbooks.Close

But none of them can let me quit Excel, only terminate the
Macro and form. The sheet is still there and have to be
close manualy. What should I do?