Hi there,
I try to overwrite a file when I save it.
I have put the following code but it doesn't work, it asks me if I want ro replace the file.
I have also tried
Here the full code
I try to overwrite a file when I save it.
I have put the following code but it doesn't work, it asks me if I want ro replace the file.
Code:
Application.DisplayAlerts = False
Code:
ActiveWorkbook.Application.DisplayAlerts = False
Here the full code
Code:
ActiveWorkbook.SaveAs Filename:= _ "S:\Construction\National - Head Office\A Profit and Loss\A01 FY Budgets\08. FY19 P&L\1.Monthly P&L Review\Excel\1. NAT CONST CMT P&L.xlsx" _
, FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False
ActiveWorkbook.Application.DisplayAlerts = False
ActiveWindow.Close