LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 149
Default Suppress Delete Sheet Warning

I'm setting Application.ScreenUpdating = False before deleting a "hidden"
sheet in my workbook. My problem is that the warning saying "Data may exist
...." that pop ups when the "Delete" command is issued, is forcing me to
click "Delete". Is there anyway to auto answer the "Delete" dialog button
and prevent the user from getting any visual warning of the delete?



CODE:

Sub RemoveSheetDateHelper()

Application.ScreenUpdating = False

Sheets("tmpSheet").Visible = True
Sheets("tmpSheet").Select
Range("A1").Select
ActiveWindow.SelectedSheets.Delete

Application.ScreenUpdating = True
End Sub


 
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
Delete Sheet without Warning Sloth Excel Programming 5 January 24th 08 11:57 PM
Delete Sheet w/o warning prompt... Jeff Harbin[_4_] Excel Programming 6 September 9th 06 02:39 AM
How to Delete Excel Sheet without Warning - MFC [email protected] Excel Programming 5 July 24th 06 04:20 PM
VBA Bypass Delete Sheet Warning bill_morgan Excel Programming 8 February 28th 06 10:51 PM
Delete sheet without warning messages Flystar[_17_] Excel Programming 1 May 31st 04 04:51 AM


All times are GMT +1. The time now is 12:14 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"