Warning prompts disabling

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)
 
K

Kevin B

Application.DisplayAlerts = False

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

Nick Hodge

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)
 
N

Nick Hodge

No

My new ISP (Broadband) gave it me

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

jason

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top