Re: Auto Response to Dialog Box

Tech-Archive recommends: Speed Up your PC by fixing your registry



Jim

Application.DisplayAlerts=False

and true at the end

This will take all the defaults in dialogs

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
nick_hodgeTAKETHISOUT@xxxxxxxxxxxxxxxx
www.nickhodge.co.uk


"Jim" <Jim@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:FE0DE8EE-A135-42E1-A664-4E245347E34B@xxxxxxxxxxxxxxxx
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 ***(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!

.


Quantcast