Disable pop up warnings in Excel 2000

  • Thread starter Thread starter Raphael
  • Start date Start date
R

Raphael

Hi everyone!

Is it possible to prevent any warnings and/or error
messages pop ups to appear after running a macro?

Could someone send me a command to do it?

Thanks in advance!

Raphael
 
Hi
at the beginning of your macro insert
application.displayalerts = false

and turn them on afterward with
application.displayalerts = true
 
Turn it on or off.

Application.DisplayAlerts = False
Workbooks("BOOK1.XLS").Close
Application.DisplayAlerts = True
 

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

Back
Top