Off excel DisplayAlerts

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

image

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