I need VBA cod thatrecords the number of times a cell in a worksheet has a value change.
For example if cell J5 contains the live feed, if thatl value is changed to this would be recorded as 1 in the cell using the recording function. If that Cell value is then changed to 11, the cell change would be recorded as 2.
I'm really new to all this code stuff so help would be very much aprreciated.
I've tried using this and lsight variations, but none have worked:
For example if cell J5 contains the live feed, if thatl value is changed to this would be recorded as 1 in the cell using the recording function. If that Cell value is then changed to 11, the cell change would be recorded as 2.
I'm really new to all this code stuff so help would be very much aprreciated.
I've tried using this and lsight variations, but none have worked:
Code:
Private Sub Worksheet_Calculate()
Static OldVal As Variant
With Range("B3")
Application.EnableEvents = False
If .Value <> OldVal Then
.Offset(, 4).Value = Target.Offset(, 4).Value + 1
End If
Application.EnableEvents = True
End With