Display Alerts Not Working

aequitas1903

Board Regular
Joined
Mar 8, 2012
Messages
127
Hi everyone,

I searched the forum and internet but couldn't find the exact solution for this.

I am running a macro which checks a value (the values I am checking have sheets named after them) If the sumif of the value is zero I am deleting the sheet. Anyways I used

Code:
ThisWorkbook.Application.DisplayAlerts = False

It was working before but I don't know what I have done to my excel. Right now, it is not working in my pc but it works in my colleagues pc. Pop-up comes and asks my everytime to delete the sheet. There is lots of sheets to be deleted and I can not say yes every time.

Do you have ideas why this is happening? Am I the chosen one :)

Thanks you in advance. Cheers.
 
Hey again,

I fixed it by writing the "ThisWorkbook.Application.DisplayAlerts = False" code infront of sheet deletion code and "ThisWorkbook.Application.DisplayAlerts = True" after deletion is done.

If you still have any idea or suggestions, I will be happy to hear.

Cheers
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top