SendKeys

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am running a macro to Load data into a Data sheet and once it's in the
excel I want to delete the data sheet. When you delete a sheet message box
always comes up and makes sure its ok to delete. How can I delet these
sheets without having the macro stop to ask if its ok to delete the sheet.
Is there a special Sendkey function that will stop this message box from
coming up?

Thanks,

Will
 
Hi Wtadder,

Try:

Application.DisplayAlerts = False

' Your deletion 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