ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Saving (https://www.excelbanter.com/excel-programming/307316-saving.html)

Cindy

Saving
 
Is there a way to save so that is automatically replaces
an existing file, without asking the user?

This is what I am currently using:

ActiveWorkbook.SaveAs Filename:="C:\Dir\filename.xls", _
FileFormat:=xlNormal, Password:="",
WriteResPassword:="", _ReadOnlyRecommended:=False,
CreateBackup:=False

ActiveWorkbook.SaveAs Filename:="C:\Dir\filename.csv",
FileFormat _:=xlCSV, CreateBackup:=False

Thanks for your help.

Frank Kabel

Saving
 
Hi
try:
application.displayalerts=false
'saving code
application.displayalerts=true

--
Regards
Frank Kabel
Frankfurt, Germany

"Cindy" schrieb im Newsbeitrag
...
Is there a way to save so that is automatically replaces
an existing file, without asking the user?

This is what I am currently using:

ActiveWorkbook.SaveAs Filename:="C:\Dir\filename.xls", _
FileFormat:=xlNormal, Password:="",
WriteResPassword:="", _ReadOnlyRecommended:=False,
CreateBackup:=False

ActiveWorkbook.SaveAs Filename:="C:\Dir\filename.csv",
FileFormat _:=xlCSV, CreateBackup:=False

Thanks for your help.



Cindy

Saving
 
Thank you so much, it worked perfect.
-----Original Message-----
Hi
try:
application.displayalerts=false
'saving code
application.displayalerts=true

--
Regards
Frank Kabel
Frankfurt, Germany

"Cindy" schrieb im

Newsbeitrag
...
Is there a way to save so that is automatically

replaces
an existing file, without asking the user?

This is what I am currently using:

ActiveWorkbook.SaveAs Filename:="C:\Dir\filename.xls",

_
FileFormat:=xlNormal, Password:="",
WriteResPassword:="", _ReadOnlyRecommended:=False,
CreateBackup:=False

ActiveWorkbook.SaveAs Filename:="C:\Dir\filename.csv",
FileFormat _:=xlCSV, CreateBackup:=False

Thanks for your help.


.



All times are GMT +1. The time now is 07:27 AM.

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