Events are not disabled

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,

I'm deleting a sheet w/ data via code and the following is not working??

Application.EnableEvents = False
wks.Delete
Application.EnableEvents = True

Thank you for your suggestions
 
You give almost no information but perhaps you want
application.displayalerts=false
 
Works fine for me. What are you expecting to happen?

If you don't want to see the *alert*, use

On Error Resume Next
Application.DisplayAlerts = False
wks.Delete
Application.DisplayAlerts = True
On Error GoTo 0
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top