View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Frank Kabel Frank Kabel is offline
external usenet poster
 
Posts: 3,885
Default suppress warnings

Hi
add the line
application.displayalerts = false
before the deletion code and the line
application.displayalerts = True
after the deletion

-----Original Message-----
Hi all

How can I suppress warnings like "selected sheet will be
permanently deleted" while a macro deleting sheets is
being run?

Thanks!
.