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

Hi all

How can I suppress warnings like "selected sheet will be
permanently deleted" while a macro deleting sheets is
being run?

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default suppress warnings

Hi
add the line
application.displayalerts = false
before the deletion code and the line
application.displayalerts = True
after the deletion

-----Original Message-----
Hi all

How can I suppress warnings like "selected sheet will be
permanently deleted" while a macro deleting sheets is
being run?

Thanks!
.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 575
Default suppress warnings

Claude,

application.displayalerts = false
your code
application.displayalerts = true

You might want to have a look at Google's group search feature which has
answers like this archived. This one pops up a lot.

Robin Hammond
www.enhanceddatasystems.com

"Claude" wrote in message
...
Hi all

How can I suppress warnings like "selected sheet will be
permanently deleted" while a macro deleting sheets is
being run?

Thanks!



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
circular reference warnings MATTMCG Excel Worksheet Functions 1 June 13th 08 05:36 PM
Warnings Lynz[_2_] Excel Discussion (Misc queries) 3 August 14th 07 03:58 PM
how to protect without getting the warnings Conditional Formatting Excel Worksheet Functions 0 November 21st 05 04:42 PM
how to protect without getting the warnings Conditional Formatting Excel Worksheet Functions 0 November 21st 05 04:40 PM
Turn off warnings in Macro Patti Excel Worksheet Functions 1 January 21st 05 05:47 PM


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