Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
auto save a backup copy of a workbook with the original Sheet.
I am using Excel 2003 version |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
In the ThisWorkbook code module
Private Sub Workbook_BeforeClose(Cancel As Boolean) Application.OnTime nTime, "SaveFile", , False End Sub Private Sub Workbook_Open() Call SaveFile End Sub In a standard code module Public nTime As Double Public Sub SaveFile() Dim PosExt As Long With ThisWorkbook nTime = Now + TimeSerial(1, 0, 0) 'every hour PosExt = InStrRev(".", .Name) .SaveCopyAs .Path & Application.PathSeparator & Left(.Name, PosExt - 1) & Format(Now, "yyyy-mm-dd hh-mm-ss") Application.OnTime nTime, "SaveFile" End With End Sub -- __________________________________ HTH Bob "Ese" wrote in message ... auto save a backup copy of a workbook with the original Sheet. I am using Excel 2003 version |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Turn off auto backup copy | Excel Worksheet Functions | |||
In Excel, I want to create a backup copy whenever I save a file. | Excel Discussion (Misc queries) | |||
save a backup copy in different folder | Excel Discussion (Misc queries) | |||
How do I shut off making a backup copy of a file when I save in E. | Excel Discussion (Misc queries) | |||
How do i save backup copy in a different folder | Excel Discussion (Misc queries) |