Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Auto Response to Dialog Box


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


Gord Dibben MS Excel MVP

On Wed, 13 Dec 2006 14:09:01 -0800, Jim wrote:

I've created a macro that deletes several tabs from a workbook. When the
macro is run, a dialog box displays - "Data may exist in the sheet(s)
selected for deletion. To permanently delete the data, press Delete."

Is there any coding I can add to the macro that will auto-select 'Delete'
without prompting the user?

Thanks for all your help!


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
Auto response of one column to another Colin Hayes Excel Worksheet Functions 3 April 26th 07 09:20 PM
Auto Response to Dialog Box Nick Hodge Excel Programming 1 December 13th 06 10:21 PM
How to auto response the dialog myBasic[_2_] Excel Programming 4 December 1st 04 03:21 AM
inputbox Auto response Joe Excel Programming 3 August 15th 04 01:26 AM
Macro to Force Response in Dialog Box JenReyn Excel Programming 1 January 10th 04 01:12 AM


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