Off excel DisplayAlerts

Please let me know if there is any way to stop the pop-ups which we get after deleting the sheet, I tried using invoke code option with below code but it’s not working, let me know if we can resolve the same.
Application.DisplayAlerts = False
Application.DisplayAlerts = True


If you are using the Excel in visible mode, why you not send a hotkey or a click?