Hi all,
I found this code from @Rick Rothstein
It works perfectly except it doesnt work when you copy/paste multiple items/rows. Is there a way to do that?
Thanks !
I found this code from @Rick Rothstein
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Const CourseColumn As String = "b"
Const UniqueIDcolumn As String = "AF"
If Target.Count > 1 Then Exit Sub
If Not Intersect(Target, Columns(CourseColumn)) Is Nothing Then
If IsEmpty(Cells(Target.Row, UniqueIDcolumn).Value) Then
Cells(Target.Row, UniqueIDcolumn).Value = Format(Now, "'mmddyyyy") & Format(100 * Timer, "0000000")
End If
End If
End Sub
It works perfectly except it doesnt work when you copy/paste multiple items/rows. Is there a way to do that?
Thanks !