I have a workbook for my users. When it closes, it closes the Excel application through the following code:The reason I have Excel close is because I don't want to leave an empty Excel window behind. However, if I have other workbooks open, closing my workbook closes all of them as well. How can I have my workbook close Excel if it's the only WB open, but not close Excel if there are other WBs open?Application.Quit ActiveWorkbook.Close False
Bookmarks