Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Replace file without being prompted to save
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. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Replace file without being prompted to save
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 -- HTH... Jim Thomlinson "SJW_OST" wrote: 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. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Replace file without being prompted to save
You guys are AWSOME!!!
Thank you, that works perfectly! "Jim Thomlinson" wrote: 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 -- HTH... Jim Thomlinson "SJW_OST" wrote: 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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel - No Longer Prompted to Save When I Close File | Excel Discussion (Misc queries) | |||
Upon exiting Excel I am not prompted to SAVE the file | Excel Discussion (Misc queries) | |||
Why am I prompted to save a file when nothing has changed? | Excel Discussion (Misc queries) | |||
Save without prompted and activate external file | Excel Programming | |||
save w/o prompted and activate a file | Excel Programming |