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


I want to delete a worksheet as part of a VBA project. How do I disabl
the prompt asking if you are sure you want to delete it? I want t
take away this control from the user just within the project

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 492
Default Disable Prompts

Try

Application.DisplayAlerts = False
your code
Application.DisplayAlerts = True

Regards,
Alan.
"MatthewT" wrote in message
...

I want to delete a worksheet as part of a VBA project. How do I disable
the prompt asking if you are sure you want to delete it? I want to
take away this control from the user just within the project.


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/



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
Save Prompts PMOPS Excel Worksheet Functions 1 August 26th 08 05:40 PM
How to disable macro prompts for OK in Excel? Austin Excel Discussion (Misc queries) 8 May 10th 06 08:54 PM
Prompts sdmccabe Excel Discussion (Misc queries) 1 April 13th 06 06:03 PM
formula prompts David Excel Discussion (Misc queries) 2 April 14th 05 05:29 PM
Eliminating Prompts Andrew Park Excel Programming 0 July 10th 03 01:42 AM


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