multi[le file operation

I

igor

Hi,

Guys you are genuises and always helped me. I hope that
you can help me this time as well. Here is my problem: I
have about 160 files that i run my macro for. part of the
macro deletes 1 specific sheet. But before deleting the
sheet it gives me a warning message that asks if i'm sure
i want to delete it. I have to press "enter" key 160 times
for all the files.
Is there a way to put that "enter" stroke in the code?

Thank you
Igor
 
R

Ron de Bruin

Application.DisplayAlerts = False
ActiveSheet.Delete
Application.DisplayAlerts = True

Use this Igor
 

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