Hi All,
I have a code for username and time stamp as follows, but it doesn't work, as I have another code on the same spreadsheet, which is also "worksheet change..." would you please help?
I have a code for username and time stamp as follows, but it doesn't work, as I have another code on the same spreadsheet, which is also "worksheet change..." would you please help?
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim cell As Range
If Not Intersect(Target, Me.Range("Am1:Am2000")) Is Nothing Then
For Each cell In Intersect(Target, Me.Range("Am1:Am2000"))
If cell.Value <> "" Then
Me.Cells(cell.Row, "As").Value = Now()
Me.Cells(cell.Row, "At").Value = Application.UserName
Else
Me.Cells(cell.Row, "As").ClearContents
Me.Cells(cell.Row, "At").ClearContents
End If
Next cell
End If
End Sub