Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Deleting Sheet without message box

Hello,

I want to delete a worksheet, but upon doing so a message box pops up
informing the user that the sheet will be deleted, giving OK and Cancel
options. How do I suppress this message box? I have screened the application
object for a switch but have not figured out what to do.

Thank you so much for your help!!

Oliver


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Deleting Sheet without message box

application.displayalerts = false
worksheets("sheet99").delete
application.displayalerts = true

"Mr. T" wrote:

Hello,

I want to delete a worksheet, but upon doing so a message box pops up
informing the user that the sheet will be deleted, giving OK and Cancel
options. How do I suppress this message box? I have screened the application
object for a switch but have not figured out what to do.

Thank you so much for your help!!

Oliver


--

Dave Peterson

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Deleting Sheet without message box

Application.DisplayAlerts = False
Sheets("Whatever").Delete
Application.DisplayAlerts = True

"Mr. T" wrote in message
s.com...
Hello,

I want to delete a worksheet, but upon doing so a message box pops up
informing the user that the sheet will be deleted, giving OK and Cancel
options. How do I suppress this message box? I have screened the

application
object for a switch but have not figured out what to do.

Thank you so much for your help!!

Oliver




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
Keep sheet from deleting contents Richard Excel Worksheet Functions 1 March 14th 08 03:24 AM
Deleting every-other row in a spread sheet smintey Excel Discussion (Misc queries) 5 December 8th 04 05:08 PM
Deleting Sheet Tommi[_2_] Excel Programming 3 December 18th 03 05:28 PM
Deleting a Sheet Abdul Salam Excel Programming 1 July 29th 03 12:43 AM
Deleting a Prompt Message LC[_2_] Excel Programming 2 July 18th 03 09:46 PM


All times are GMT +1. The time now is 08:31 AM.

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"