I need a function that will trap & manage a change in cell value

T

Terry

Scenario
A value exists in a cell
The value in the cell is changed by data entry
A date would be populated in an adjacent cell reflecting the date of change
- for that cell only
My worksheet has numerous places that this function would need to work
 
T

Terry

Thank you, Tom. This response will be greatfully used and acknowledged.
What a response!
 
T

Terry

How would this code be changed to update the change date to the comment of
the same cell being changed rather than an adjacent cell?
 
T

Tom Ogilvy

Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range
If Target.Count > 1 Then Exit Sub
On Error GoTo ErrHandler
' use your list of cells to react to
Set rng = Range("B1,C11,D12,M21,A5:A30,C1:C5")
If Not Intersect(Target, rng) Is Nothing Then
Application.EnableEvents = False
Target.NoteText Text:=Format(Now, "mm/dd/yyyy hh:mm")
End If
ErrHandler:
Application.EnableEvents = True

End Sub
 

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