What the code does:
Enter a name in column C, date populates in column K.
Other:
- Drop down in column J can be "registered" or "locked"
- When data is entered in column C it auto populates "registered" in column J
Here is the code:
'Adds date when borrower name is entered
Private Sub Worksheet_Change(ByVal Target As Range)
Dim A As Range, B As Range, Inte As Range, r As Range
Set A = Range("C:C")
Set Inte = Intersect(A, Target)
If Inte Is Nothing Then Exit Sub
Application.EnableEvents = False
For Each r In Inte
If r.Offset(0, 8).Value = "" Then
r.Offset(0, 8).Value = Date
End If
Next r
Application.EnableEvents = True
End Sub
I got this code from: Auto-fill the date in a cell, when the user enters information in an adjacent cell
What I would like the code to do:
If column J is "registered" add date to column K (Which is currently does)
If column J is changed to "locked", add date to column L