Deleting Sheet Message

L

Lucia

Is there a way NOT to get the "Data may exist in the sheet(s) selection for
deletion. To permanently delete the data, press delete" message when deleting
a worksheet?

I put the code "Application.CutCopyMode = False", but it does not work.

Thanks
 
C

Chip Pearson

Lucia,

Try

Application.DisplayAlerts = False
Sheets("Whatever").Delete
Application.DisplayAlerts = True


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email on the web site)
 

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