Delete Sheet Prompt

  • Thread starter Thread starter Herman Merman
  • Start date Start date
H

Herman Merman

Hi,

I've written a macro which copies data over from a worksheet and then
deletes the original worksheet. The problem is the warning associated with
the deletion of a sheet interupts the running of the macro and resumes once
the 'delete' option is selected.

Any way I can tell the macro to delete the sheet without the prompt?
 
Hi
try something like
sub foo()
'...
application.displayalerts = False
' delte the sheet
application.displayalerts = True
'...
end sub
 
Back
Top