View Single Post
  #2   Report Post  
Chip Pearson
 
Posts: n/a
Default

In the ThisWorkbook code module, paste the following code:

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel
As Boolean)
Dim FName As String
FName = ThisWorkbook.Name
If Right(FName, 4) = ".xls" Then
FName = Left(FName, Len(FName) - 4)
End If
Application.DisplayAlerts = False
ThisWorkbook.SaveAs Filename:=FName & Format(Now, "dd-mm-yyyy") &
".xls"
Application.DisplayAlerts = True


End Sub



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Frepez" wrote in message
...
Hi I wonder if there is any way to make excel keep track of a
version of a
document. I want it to be renamed everytime I save, preferably
with todays
date.. For example "Book_22-03-2005.xls"