sharky12345
Well-known Member
- Joined
- Aug 5, 2010
- Messages
- 3,380
- Office Version
- 2016
- Platform
- Windows
Hi,
I'm using this to save a file before closing and quitting Excel;
Is there a way I can close only that instance of Excel and if there are other workbooks open then leave them as such?
I use the .Quit because if this is the only instance and I don't use it then it leaves an instance of Excel running so I need to make sure that doesn't happen too.
I'm using this to save a file before closing and quitting Excel;
Code:
Application.Quit
ActiveWorkbook.Close SaveChanges:=True
Is there a way I can close only that instance of Excel and if there are other workbooks open then leave them as such?
I use the .Quit because if this is the only instance and I don't use it then it leaves an instance of Excel running so I need to make sure that doesn't happen too.