suppress warnings

C

Claude

Hi all

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

Thanks!
 
F

Frank Kabel

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

Robin Hammond

Claude,

application.displayalerts = false
your code
application.displayalerts = true

You might want to have a look at Google's group search feature which has
answers like this archived. This one pops up a lot.

Robin Hammond
www.enhanceddatasystems.com
 

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

Top