Im new to VBA and was wondering if anyone can help me.
i have created this code which automatically adds a timestamp to a specific row when a cell is edited. However, if i want to paste in a load of data into the sheet, only the first row gets the timestamp, instead of every row.
can anyone help me?
thank you
Below is the current code used;
Private Sub Worksheet_Change(ByVal Target As Range)
Dim MyTableRange As Range
Dim myUpdatedRange As Range
Set MyTableRange = Range("A2:J150")
If Intersect(Target, MyTableRange) Is Nothing Then Exit Sub
Set myUpdatedRange = Range("K" & Target.Row)
myUpdatedRange.Value = Now()
End Sub