Deleting Worksheets Within A Macro

  • Thread starter Thread starter Jennifer Graham
  • Start date Start date
J

Jennifer Graham

I have recorded a macro which deletes worksheets. When I
got the prompt asking me if I was sure I wanted to delete
the sheets, I pushed 'OK', however this step does not show
up in the macro I recorded. When I run the recorded
macro, it stops to prompt me if I am sure. How do I
automate this step directly into the macro?
 
Hi
enclose the deletion statement with
application.displayalerts=false
'your code
application.displayalerts=True
 

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

Back
Top