Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro Help - Suppress warning box

I'm writing a macro and deleting a worksheet. How can I suppress th
warning box for the user about deleting the worksheet?

Thanks,
Stev

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Macro Help - Suppress warning box

Application.DisplayAlerts = False 'turn off warnings
Application.DisplayAlerts = True 'turn on warnings

HTH
--
Michael J. Malinsky
Pittsburgh, PA

"I am a bear of very little brain, and long
words bother me." -- AA Milne, Winnie the Pooh

"ssmith " wrote in message
...
I'm writing a macro and deleting a worksheet. How can I suppress the
warning box for the user about deleting the worksheet?

Thanks,
Steve


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default Macro Help - Suppress warning box

Application.DisplayAlerts = False
'Your Code
Application.DisplayAlerts = True

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 97 & 2000
** remove news from my email address to reply by email **

"ssmith " wrote in message
...
I'm writing a macro and deleting a worksheet. How can I suppress the
warning box for the user about deleting the worksheet?

Thanks,
Steve


---
Message posted from http://www.ExcelForum.com/



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 117
Default Macro Help - Suppress warning box

Hi Steve...
I'm writing a macro and deleting a worksheet. How can I suppress the
warning box for the user about deleting the worksheet?


This should do it..

....In front of your sheet deletion
Application.Displayalerts = False

delete your sheet<<<<<<<<


.....After your sheet deletion
Application.Displayalerts = True

Hope that does it for you..

seeya ste
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
suppress warning and locate cube in a pivot table from olap cube Tewari Excel Discussion (Misc queries) 0 March 28th 07 06:54 AM
How to suppress scroll window action when recording macro Jeremy Excel Discussion (Misc queries) 2 January 8th 07 10:39 PM
How can I suppress prompts during macro run? Andorv Excel Discussion (Misc queries) 2 October 19th 05 12:37 PM
within a macro how can I suppress the warning pop "A file named xxxx.xls already exists in this location. Do you want to replace it?" Pete McCosh Excel Programming 0 April 2nd 04 04:51 PM
Unable to suppress warning message... Jeff Richman Excel Programming 3 October 31st 03 07:25 AM


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