When the procedure ends, Excel automatically resets the Display Alerts property to True.
This sometimes causes Excel’s application window to become totally unresponsive.
For example, use , VBA can access the object directly, rather than resolving the complete path to the object each time.
This method is useful only when you are accessing an object several times during code execution.
In the case of deleting a sheet, the default operation is Delete.
If you’re not sure what the default operation is, perform a test to see what happens.