how to find date and time of each cell ?

M

mikerush7

Does anyone know if there is a way to find out when each cell in the excel
was made/changed ? date and time? maybe there is a program for it or
software?
please let me know at [email protected]

thank you !
 
G

Gary''s Student

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
Set r = ActiveSheet.UsedRange.SpecialCells(xlComments)
If Intersect(r, Target) Is Nothing Then
Else
Target.Comment.Delete
End If

With Target
.AddComment
.Comment.Visible = False
.Comment.Text Text:=Format(Now(), "mm/dd/yyyy")
End With
End Sub

This macro should be pasted in the worksheet code area. Whenever a cell is
changed, the time and date are recorded as a comment for that cell.
 
Top