I'm trying to add the date and time of the last time a row was modified to a specific column of that row with the following VBA Script:
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
ThisRow = Target.Row
If Target.Row > 1 Then Range("K" & ThisRow).Value = Now()
End Sub
But it keeps throwing the following error:
Run-time error '-2147417848 (80010108)':
Method 'Value' of object 'Range' failed
Can anyone explain why this is happening?