Warning prompts disabling

  • Thread starter Thread starter pundlik
  • Start date Start date
P

pundlik

Some processess, such as Delete a sheet, prompt a warning message an
wait for user confirmation.
This affects the operation of a macro, especially a autorun macro.
Is there some means of eliminating these warnings, either with VB cod
or thru Excel settings ?

-Pundlik
email : (e-mail address removed)
 
Application.DisplayAlerts = False

but remember to include Application.DisplayAlerts = True
before the end of your code.
 
Pundlik

Add to the start of your code

Application.DisplayAlerts=False

Set it back to 'True' at the end. Excel will run the default 'answer' for
each alert created

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(e-mail address removed)
 
No

My new ISP (Broadband) gave it me

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(e-mail address removed)
 
0oh I see
I'll just have to dream on

Jason

Nick Hodge said:
No

My new ISP (Broadband) gave it me

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(e-mail address removed)
 
Back
Top