Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ese Ese is offline
external usenet poster
 
Posts: 1
Default auto save a backup copy of a workbook

auto save a backup copy of a workbook with the original Sheet.
I am using Excel 2003 version
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default auto save a backup copy of a workbook

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Turn off auto backup copy Saucybroad007 Excel Worksheet Functions 2 September 25th 07 05:40 PM
In Excel, I want to create a backup copy whenever I save a file. Bearpecs Excel Discussion (Misc queries) 1 June 7th 06 01:52 PM
save a backup copy in different folder GT Excel Discussion (Misc queries) 3 May 11th 06 07:36 PM
How do I shut off making a backup copy of a file when I save in E. kboley2004 Excel Discussion (Misc queries) 2 December 21st 04 10:41 PM
How do i save backup copy in a different folder mekraj Excel Discussion (Misc queries) 3 December 17th 04 08:33 PM


All times are GMT +1. The time now is 06:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"