spurs
Active Member
- Joined
- Oct 18, 2006
- Messages
- 479
- Office Version
- 2016
- 2013
- 2010
- 2007
- 2003 or older
- Platform
- Windows
I am trying to get a macro to if necessary shut down the excel app where the macro itself is running from
Currently at the end of the macro, I have the coding:
Application.DisplayAlerts = False
ActiveWorkbook.Close
10 End Sub
The problem is that when this coding is reached, it does shut down the active workbook where the macro is contained
but
it opens a new blank workbook at the same time - which I don't want it to do
How do I avoid it from opening up a new workbook?
Currently at the end of the macro, I have the coding:
Application.DisplayAlerts = False
ActiveWorkbook.Close
10 End Sub
The problem is that when this coding is reached, it does shut down the active workbook where the macro is contained
but
it opens a new blank workbook at the same time - which I don't want it to do
How do I avoid it from opening up a new workbook?