ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   save & backup file (https://www.excelbanter.com/excel-discussion-misc-queries/232295-save-backup-file.html)

Seeker

save & backup file
 
I have following code recorded, how could I
1) save workbook without message box prompt to overwrite the existing file
name
2) synchronization content in backup file

ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\Don\My Documents\Book1.xls",
FileFormat:=xlNormal _
, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=True
ActiveWorkbook.Close (True)
Rgds


Jacob Skaria

save & backup file
 
Try

Application.DisplayAlerts = False
'SaveAs code
Application.DisplayAlerts = True

--
If this post helps click Yes
---------------
Jacob Skaria


"Seeker" wrote:

I have following code recorded, how could I
1) save workbook without message box prompt to overwrite the existing file
name
2) synchronization content in backup file

ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\Don\My Documents\Book1.xls",
FileFormat:=xlNormal _
, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=True
ActiveWorkbook.Close (True)
Rgds



All times are GMT +1. The time now is 03:54 AM.

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