![]() |
Creating a Backup copy of workbook
I have a range already set up with my save path name, I want to create a
macro that will save a backup copy of the workbook that I am working in. Any ideas how? Thanks for any help j |
Creating a Backup copy of workbook
With Activeworkbook
.SaveCopyAs Range("A1").Value & _ Left(.Name,Len(.name)-4) & Format(Now,"yyymmddhhmmss") & ".xls" End With -- HTH Bob Phillips (remove nothere from email address if mailing direct) "justaguyfromky" wrote in message ... I have a range already set up with my save path name, I want to create a macro that will save a backup copy of the workbook that I am working in. Any ideas how? Thanks for any help j |
Creating a Backup copy of workbook
Thanks Bob
This works great, but I would like the backup copy to be overwritten everday by the next backup. What would I have to change on this formula to get the backup file to be named "Filename_bak.xls" Thanks again j "Bob Phillips" wrote: With Activeworkbook .SaveCopyAs Range("A1").Value & _ Left(.Name,Len(.name)-4) & Format(Now,"yyymmddhhmmss") & ".xls" End With -- HTH Bob Phillips (remove nothere from email address if mailing direct) "justaguyfromky" wrote in message ... I have a range already set up with my save path name, I want to create a macro that will save a backup copy of the workbook that I am working in. Any ideas how? Thanks for any help j |
Creating a Backup copy of workbook
I figured it out,
Thanks again for the help Bob j "Bob Phillips" wrote: With Activeworkbook .SaveCopyAs Range("A1").Value & _ Left(.Name,Len(.name)-4) & Format(Now,"yyymmddhhmmss") & ".xls" End With -- HTH Bob Phillips (remove nothere from email address if mailing direct) "justaguyfromky" wrote in message ... I have a range already set up with my save path name, I want to create a macro that will save a backup copy of the workbook that I am working in. Any ideas how? Thanks for any help j |
All times are GMT +1. The time now is 08:11 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com