ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Overwrite option when saving a workbook (https://www.excelbanter.com/excel-programming/368639-overwrite-option-when-saving-workbook.html)

Bharath Rajamani

Overwrite option when saving a workbook
 

Upon closing a new workbook, Is there a way to overwrite any other workbook
of the same name in the given folder, without halting the macro to ask the
user?

wbkR.Close SaveChanges:=True, Filename:= "Spreads.xls"


Rgds,

Duncan[_5_]

Overwrite option when saving a workbook
 
Bharath,

I think its...

Application.DisplayAlerts = False
'your code
Application.DisplayAlerts = true

HTH
Duncan



Bharath Rajamani wrote:

Upon closing a new workbook, Is there a way to overwrite any other workbook
of the same name in the given folder, without halting the macro to ask the
user?

wbkR.Close SaveChanges:=True, Filename:= "Spreads.xls"


Rgds,




All times are GMT +1. The time now is 04:48 AM.

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