Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 355
Default How to suppress Excel default message

Hello -

I have a button that deletes a sheet. Prior to the sheet being deleted,
Excel has a message box that pops up asking if you really want to delete it.
I need to suppress that message. Is there a way you can keep default
messages from displaying?

Any help will be greatly appreciated!
--
Sandy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default How to suppress Excel default message

Sandy,

Try code like

Application.DisplayAlerts = False
' delete the sheet
Application.DisplayAlerts = True


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Sandy" wrote in message
...
Hello -

I have a button that deletes a sheet. Prior to the sheet being
deleted,
Excel has a message box that pops up asking if you really want
to delete it.
I need to suppress that message. Is there a way you can keep
default
messages from displaying?

Any help will be greatly appreciated!
--
Sandy



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 355
Default How to suppress Excel default message

Thanks, Chip!
--
Sandy


"Chip Pearson" wrote:

Sandy,

Try code like

Application.DisplayAlerts = False
' delete the sheet
Application.DisplayAlerts = True


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Sandy" wrote in message
...
Hello -

I have a button that deletes a sheet. Prior to the sheet being
deleted,
Excel has a message box that pops up asking if you really want
to delete it.
I need to suppress that message. Is there a way you can keep
default
messages from displaying?

Any help will be greatly appreciated!
--
Sandy




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 Update Links Message blatham Excel Discussion (Misc queries) 2 April 20th 06 02:34 PM
suppress Excel save message Ben Excel Programming 2 October 29th 05 03:54 PM
Suppress add-in confirmation message Microsoft NewsGroups Excel Programming 2 July 7th 04 06:39 PM
Automating Excel WorkBook With C# Suppress Excel Message Boxes Possible? unemotionalhumanoid Excel Programming 1 August 28th 03 02:03 PM
suppress popup message walt Excel Programming 4 August 6th 03 05:33 PM


All times are GMT +1. The time now is 10:16 PM.

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"