I am using the following code to Close the Workbook within which the code is being used.
If another Workbook is open it closes this Workbook and everything appears normal, yet if this is the ONLY Workbook open, it leaves excel live.
obviously closes ALL open excel workbooks.
How do you specify fully closing excel if only the one Workbook is open?
VBA Code:
ThisWorkbook.Close SaveChanges:=True
If another Workbook is open it closes this Workbook and everything appears normal, yet if this is the ONLY Workbook open, it leaves excel live.
VBA Code:
Application.Quit
obviously closes ALL open excel workbooks.
How do you specify fully closing excel if only the one Workbook is open?