Automatic date on cell value add | excel | VBA | excel interview question #vba #date #custom #viral
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 1 Then Exit Sub
If Not Intersect(Target, Range("B:B")) Is Nothing Then
Target.Offset(0, 4).Value = Date
End If
End Sub
If Target.Cells.Count > 1 Then Exit Sub
If Not Intersect(Target, Range("B:B")) Is Nothing Then
Target.Offset(0, 4).Value = Date
End If
End Sub