PC Review


Reply
Thread Tools Rate Thread

Disable Worksheet Delete Warning

 
 
=?Utf-8?B?Q2hhcmxlcyBpbiBJcmFx?=
Guest
Posts: n/a
 
      30th Mar 2007
Greetings:

When my VBA macro deletes one of the worksheets in
my workbook (through the Sheet.Delete method), I get
the following warning:

"Data may exist in the sheet(s) selected for deletion.
To permanently delete the data, press Delete."

I then have to click on the Delete button to proceed with
the action.

Is there any way to suppress this annoying warning so
that the worksheet will automatically get deleted?

Respectfully,

Charles
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      30th Mar 2007
precede it with

Application.DisplayAlerts = False

and reset to True after.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Charles in Iraq" <(E-Mail Removed)> wrote in message
news:F6626C33-BEA8-4D07-9994-(E-Mail Removed)...
> Greetings:
>
> When my VBA macro deletes one of the worksheets in
> my workbook (through the Sheet.Delete method), I get
> the following warning:
>
> "Data may exist in the sheet(s) selected for deletion.
> To permanently delete the data, press Delete."
>
> I then have to click on the Delete button to proceed with
> the action.
>
> Is there any way to suppress this annoying warning so
> that the worksheet will automatically get deleted?
>
> Respectfully,
>
> Charles



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable row delete in a worksheet (not all worksheets in theworkbook) Lucas Reece Microsoft Excel Programming 3 20th Nov 2009 11:22 AM
using VBA how can I delete a worksheet w/o the warning message pop Jim K. Microsoft Excel Misc 2 1st Jul 2008 04:00 PM
Disable Worksheet Delete Dialog =?Utf-8?B?R3JlZw==?= Microsoft Excel Programming 1 1st Mar 2005 08:32 PM
How do I disable the warning message when I delete worksheets in E Frank Stone Microsoft Excel Misc 0 16th Aug 2004 08:43 PM
Re: How do I disable the warning message when I delete worksheets in E Andy Wiggins Microsoft Excel Misc 0 16th Aug 2004 08:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:22 PM.