Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Deleting Sheet Message

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Deleting Sheet Message

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)


"Lucia" wrote in message
...
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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting a sheet Kjeldc Excel Programming 1 August 9th 05 02:25 PM
Deleting Excel Message/Dialog Boxes Rob[_16_] Excel Programming 4 February 25th 04 05:58 PM
Deleting Sheet without message box Mr. T[_2_] Excel Programming 2 January 11th 04 04:25 PM
Deleting a Sheet Abdul Salam Excel Programming 1 July 29th 03 12:43 AM
Deleting a Prompt Message LC[_2_] Excel Programming 2 July 18th 03 09:46 PM


All times are GMT +1. The time now is 02:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"