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 (e-mail address removed)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top