How to avoid delete confirmation

  • Thread starter Jens Palacios Neffke
  • Start date
J

Jens Palacios Neffke

Hi.

I got a macro on workbook1 that deletes a sheet on workbook2. But when I
execute it, it shows a warning asking for confirmation. How can I avoid this
warning and getting the sheet deleted?

Any kinda help will be greatly appreciated

Jepane
 
J

Jim Thomlinson

Applicartion.displayAlerts = False
'Delete your sheet
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

Top