ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How do I suppress user dialog in File Save As? (https://www.excelbanter.com/excel-programming/357423-how-do-i-suppress-user-dialog-file-save.html)

Tony Lin[_2_]

How do I suppress user dialog in File Save As?
 
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



Norman Jones

How do I suppress user dialog in File Save As?
 
Hi Tony,

Try:

Applicarion.DisplayAlerts = False

'Your code

Applicarion.DisplayAlerts = True


---
Regards,
Norman



"Tony Lin" wrote in message
...
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






All times are GMT +1. The time now is 06:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com