Supress Warning Message

  • Thread starter David Billigmeier
  • Start date
D

David Billigmeier

I have the following code in a macro:

For i = numVars + 1 To 15
Sheets("numVar" & i).Select
ActiveSheet.Delete
Next

It automatically deletes some tabs in my workbook. Every time I run it I
get a warning message asking if I really want to delete each tab. Is there
any code I can place before I run this loop to supress these warning messages?

Thanks.
 

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