Closing Excel from a Macro

  • Thread starter Thread starter Jimmy
  • Start date Start date
J

Jimmy

Hello,

A have a macro that emails out certaing information and
would like to closed or Exit Excel once code is executed.
Right now I have a Mssage box that let's the user know it
finished emailing the information but it advises the user
to please close excel.

How can I close Excel after code is executed?

Thanks in advance!
Jimmy
 
Yes... Only one excel open and still does not close excel.


Anything else??

Thanks!
Jimmy
 
Hi Jimmy... try

Sub CloseNoSave()
ThisWorkbook.Saved = True
Application.Quit
End Sub

hope this helps...

seeya ste
 

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

Back
Top