Hi,
I have found a few different VBA codes that shows how to insert a time stamp on a cell once a certain cell has changed, which is a tracking change VBA. The problem with that is, it will only create a time stamp if someone goes in and actually types in a different value, not if it is a formula and the formula causes the value to change. Can anyone suggest another solution? I have the VBA code that I am using below.
A simple example is:
Cell A1 contains a drop-down of A or B
Cell B2: =if(a1="A","apple","ball")
Cell C2 would show the time-stamp of when someone selects a different option in cell A1
---------------
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 2 Then
'if anything in column B changes
Cells(Target.Row, 3).Value = Now
'inserts the time stamp in column 3
End If
End Sub
I have found a few different VBA codes that shows how to insert a time stamp on a cell once a certain cell has changed, which is a tracking change VBA. The problem with that is, it will only create a time stamp if someone goes in and actually types in a different value, not if it is a formula and the formula causes the value to change. Can anyone suggest another solution? I have the VBA code that I am using below.
A simple example is:
Cell A1 contains a drop-down of A or B
Cell B2: =if(a1="A","apple","ball")
Cell C2 would show the time-stamp of when someone selects a different option in cell A1
---------------
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 2 Then
'if anything in column B changes
Cells(Target.Row, 3).Value = Now
'inserts the time stamp in column 3
End If
End Sub