Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Supress message window

Guys,

I'd like to disable the information window that pops up when a sheet is
deleted. The code below I thought would accomplish that but for some reason
it does not. Any help would be appreciated. The sheet name is "Temp" and it
does have cells with numbers, etc. How to delete this sheet and suppress the
delete message?

Thanks.

Application.EnableEvents = False

On Error Resume Next

Sheets("Temp").Delete

Application.EnableEvents = True
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Supress message window

Hi,

Application.displayalerts=false

delete your sheet

Application.displayalerts=True

Mike


"Varun" wrote:

Guys,

I'd like to disable the information window that pops up when a sheet is
deleted. The code below I thought would accomplish that but for some reason
it does not. Any help would be appreciated. The sheet name is "Temp" and it
does have cells with numbers, etc. How to delete this sheet and suppress the
delete message?

Thanks.

Application.EnableEvents = False

On Error Resume Next

Sheets("Temp").Delete

Application.EnableEvents = True

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
supress message geebee Excel Programming 9 September 14th 07 01:02 PM
Supress Warning Message David Billigmeier Excel Programming 2 October 2nd 06 07:16 PM
Supress error message Jim Anderson Excel Discussion (Misc queries) 3 December 1st 04 12:55 AM
supress activex message on open workbook Clemens Hoogevonder Excel Programming 2 November 5th 04 04:52 PM
supress Solver message PB Excel Programming 0 November 19th 03 02:29 PM


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