I use this code to save over a file with new info;
ActiveWorkbook.SaveAs Filename:= _
"H:\Shortcuts&Links\M Y P R O J E C T
S\NationalSummary\DPR_National_Summary_Daily.xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
I get prompted that the file already exists and do I want to replace the
file by saving anyway. I do want to save anyway each and every time. What
code can I include to automatically save and replace the file without being
prompted?
Your help is greatly appreciated.
Jim Thomlinson - 26 May 2008 18:39 GMT
You want to temporarily suspend alerts as follows...
Application.displayalerts = false
ActiveWorkbook.SaveAs Filename:= _
"H:\Shortcuts&Links\M Y P R O J E C T
S\NationalSummary\DPR_National_Summary_Daily.xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
Application.displayAlerts = true

Signature
HTH...
Jim Thomlinson
> I use this code to save over a file with new info;
>
[quoted text clipped - 10 lines]
>
> Your help is greatly appreciated.
SJW_OST - 26 May 2008 18:45 GMT
You guys are AWSOME!!!
Thank you, that works perfectly!
> You want to temporarily suspend alerts as follows...
>
[quoted text clipped - 22 lines]
> >
> > Your help is greatly appreciated.