Excel can be closed via VBA if called from Excel
Application.Quit
If you are calling Excel from outside, you will need to set up a link to Excel and then close it.
Set appExcel = GetObject(, "Excel.Application")
appExcel.Quit
You need to make sure that all books are closed or saved, otherwise Excel will prompt the user to save.
source
share