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

Hi
try
sub foo()
application.displayalerts=false
'your code
application.displayalerts=true
end sub
-----Original Message-----
Hi.

From a macro, I want to delete all worksheets in a

workbook that are
empty. With the expression

ActiveSheet.Delete (supposed I activate each sheet one

after
another)

this happens. Problem here is that I will be asked

whether I really
wanted to delete the sheet through a message box. Is

there away to turn
this off?

Thanks

F


---
Message posted from http://www.ExcelForum.com/

.