How do I suppress user dialog in File Save As?

T

Tony Lin

I need to have my macro execute the command ActiveWorkbook.SaveAs in a fully
automated mode. I need to have the macro suppress any user dialog boxes.
If the file already exists, I want the preogram to overwrite any existing
file with the same name.

What command do I need to execute or what parameter do I need to set, in
order to have Excel do this.

Thanks.

Tony
Fremont, CA
 
N

Norman Jones

Hi Tony,

Try:

Applicarion.DisplayAlerts = False

'Your code

Applicarion.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

Top