I found this code in a prior thread that is working but hoping someone can help modify for 2 issues.
1. If I highlight a row or range that contains row R, it places the =NOW() result in every column 4 to the right of each active cell. Is there a way to make sure it only does it related to the referenced column (R in this case)?
2. The code runs if you click to activate the cell, any way to make it only when the contents are actually modified?
Thanks
1. If I highlight a row or range that contains row R, it places the =NOW() result in every column 4 to the right of each active cell. Is there a way to make sure it only does it related to the referenced column (R in this case)?
2. The code runs if you click to activate the cell, any way to make it only when the contents are actually modified?
Code:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, Range("R4:R1000")) Is Nothing Then Exit Sub
Target.Offset(0, 4) = Now()
End Sub
Thanks
Last edited: