Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Setup / April 2004

Tip: Looking for answers? Try searching our database.

disable warnings

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
larry - 07 Apr 2004 21:17 GMT
I want to be able to delete a worksheet without getting
the built-in warning message every time on Excel 2000 SP2.
Is ther a way to do this? Thanks
Dave Peterson - 08 Apr 2004 01:51 GMT
application.displayalerts = false
worksheets("sheet1").delete
application.displayalerts = true

> I want to be able to delete a worksheet without getting
> the built-in warning message every time on Excel 2000 SP2.
> Is ther a way to do this? Thanks

Signature

Dave Peterson
ec35720@msn.com

Gord Dibben - 09 Apr 2004 00:19 GMT
Larry

Using VBA code.

Sub SheetDelete()
Application.DisplayAlerts = False
   ActiveWindow.SelectedSheets.Delete
Application.DisplayAlerts = True
End Sub

If unsure of where to place this code and how to use it, visit David
McRitchie's website for info on getting started with VBA and macros.

http://www.mvps.org/dmcritchie/excel/getstarted.htm

Gord Dibben Excel MVP

>I want to be able to delete a worksheet without getting
>the built-in warning message every time on Excel 2000 SP2.
>Is ther a way to do this? Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.