How To: Excel Macro, Save, Exit, and Close

Sub Saveandclose()
ActiveWorkbook.Save
ActiveWorkbook.Close
ActiveWorkbook.RunAutoMacros Which:=xlAutoClose
Application.Quit
End Sub

  • Share/Bookmark
  1. Ashley Gooch says:

    This only closes the worksheet, how do you close down the program aswell

  1. There are no trackbacks for this post yet.

Leave a Reply

Upload files:

You can include images or files in your comment by selecting them below. Once you select a file, it will be uploaded and a link to it added to your comment. You can upload as many images or files as you like and they will all be added to your comment.

Select File: