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

Hi,

To suppress the dialogue box put the following


Application.DisplayAlerts = False
ActiveWindow.SelectedSheets.Delete
Application.DisplayAlerts = True


For more information look in the VBE help file.

Regards
Paul


"FireatHome" wrote in message
...
In VBA I delete a sheet with this command:
"ActiveWindow.SelectedSheets.Delete"

I get a msgbox where I have to "OK" to perform the delete.

Q: How to delete without the msgbox




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
Automated shifts. Is it possible? AcacioJMartins New Users to Excel 1 February 1st 11 12:29 AM
Delete Duplicate Rows Macro Question elfmajesty Excel Discussion (Misc queries) 1 June 17th 06 01:12 AM
Quick Macro question - How to delete two rows then skip one - and repeat David Smithz Excel Discussion (Misc queries) 3 March 3rd 06 02:58 PM
Automated Reporting JerryS Excel Worksheet Functions 0 January 9th 06 08:48 PM
help: automated delete without question John Wilson Excel Programming 0 August 12th 03 09:40 PM


All times are GMT +1. The time now is 09:32 AM.

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"