G
Gerard Sanchez
Hi,
Currently I we have this VBA code that puts in the date and time
of last edit of the worksheet:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim dateTemp As Date
ActiveSheet.Names.Add Name:="_timestamp", RefersTo:=Now()
dateTemp = Val(Mid(ActiveSheet.Names("_timestamp"), 2))
ActiveSheet.Name = Format(dateTemp, "MMM dd.hh.mm.ss")
End Sub
I am wonder if anyone can revise this so that when current Date
is returned the code dies; any changes made subsequently to the
worksheet the following day wouldn't change its value??
Currently I we have this VBA code that puts in the date and time
of last edit of the worksheet:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim dateTemp As Date
ActiveSheet.Names.Add Name:="_timestamp", RefersTo:=Now()
dateTemp = Val(Mid(ActiveSheet.Names("_timestamp"), 2))
ActiveSheet.Name = Format(dateTemp, "MMM dd.hh.mm.ss")
End Sub
I am wonder if anyone can revise this so that when current Date
is returned the code dies; any changes made subsequently to the
worksheet the following day wouldn't change its value??