![]()
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 1 Then Target.Offset(, 1).Value = Application.UserName End If End Sub
![]()
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 1 Then Target.Offset(, 1).Value = Application.UserName End If End Sub
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
Hi, Liju ,
maybe use
Even users who do not know very much about Office may change the Application.Username at their will...![]()
Private Sub Worksheet_Change(ByVal Target As Range) Dim rngCell As Range If Not Intersect(Target, Range("A:A")) Is Nothing Then Application.EnableEvents = False For Each rngCell In Target Cells(rngCell.Row, Columns.Count).End(xlToLeft).Offset(0, 1).Value = Environ$("USERNAME") Next rngCell Application.EnableEvents = True End If End Sub
Ciao,
Holger
Use Code-Tags for showing your code: [code] Your Code here [/code]
Please mark your question Solved if there has been offered a solution that works fine for you
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks