close excel after finishing task

R

rachel

Hi
I wrote an application in VBA that opens by shortcut, do a lot of
things, such as creating charts, files etc.
I close all the files but excel is still open. How can I close Excel .
thanks
 
C

Cole

try this


Sub test()
'------
'Procedures
'------

Application.DisplayAlerts = False
Application.Quit
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top