K
kardifflad
Hello.
I have this bit of code thats set as a change event in my spreadhseet
So basically when something is entered in column A it updates inf
columns D,E,F,G. (so i can see who did something and when).
However this only work if the user types info in but not if they cop
and paste a load in at a time. So for example if they pasted in 10
entries into column A, then the other columns won't update.
how can i change the code to deal with pasting? (i have tried th
different change events in the spreadsheet coding but nothing works
Thanks in advance.
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A:A")) Is Nothing Or Target.Cells.Coun
Target.Offset(0, 3).Value = Application.UserName
Target.Offset(0, 4).Value = Date
Target.Offset(0, 5).Value = Range("B2")
Target.Offset(0, 6).Value = Date + 160
End Su
I have this bit of code thats set as a change event in my spreadhseet
So basically when something is entered in column A it updates inf
columns D,E,F,G. (so i can see who did something and when).
However this only work if the user types info in but not if they cop
and paste a load in at a time. So for example if they pasted in 10
entries into column A, then the other columns won't update.
how can i change the code to deal with pasting? (i have tried th
different change events in the spreadsheet coding but nothing works
Thanks in advance.
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A:A")) Is Nothing Or Target.Cells.Coun
Target.Offset(0, 2).Value = "OBJECT"1 Then Exit Sub
Target.Offset(0, 3).Value = Application.UserName
Target.Offset(0, 4).Value = Date
Target.Offset(0, 5).Value = Range("B2")
Target.Offset(0, 6).Value = Date + 160
End Su