Simple enough, use the worksheet change event
Code:Private Sub Worksheet_Change(ByVal Target As Range) On Error GoTo wsc_exit Application.EnableEvents = False With Target Me.Cells(.Row, Me.Columns.Count).End(xlToLeft).Offset(0, 1).Value = Environ("Username") End With wsc_exit: Application.EnableEvents = True End Sub
Bookmarks