This statement allows you to shut down the currently running instance of Excel.
Application.Quit
You'll be prompted to Save the file it's been changed since the last save. To quit without asking you to answer a dialog.
Usage This is useful for a Batch process that starts up, does some work and then exists. |