Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Disable Worksheet Delete Warning

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Disable Worksheet Delete Warning

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" wrote in message
...
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
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
using VBA how can I delete a worksheet w/o the warning message pop Jim K.[_2_] Excel Discussion (Misc queries) 2 July 1st 08 04:00 PM
Disable Warning Michael Excel Programming 1 July 21st 06 04:12 PM
Disable Security Warning Walfe31 Excel Programming 1 May 3rd 06 10:50 PM
Disable Worksheet Delete Dialog Greg Excel Programming 1 March 1st 05 08:32 PM
disable warning messages? Ed Ardzinski[_2_] Excel Programming 3 November 1st 04 05:50 PM


All times are GMT +1. The time now is 06:18 PM.

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

About Us

"It's about Microsoft Excel"