Hello guys! Nice to be here, I'm posting about a problem that idk how to figure it out...you see I got this code "writing" with the actual date in column S X-cell when something in the column P X-cell (everything happening in the same row) is modified.
Everything is just fine with that, the thing is... even when I don't modify anything in the selected cell it's puts the date only by double-clicking on it (obvs it work if I modify something).
So... the thing I want to achieve it's that this thing only "writes" the date on X-Cell column S only when really the X-cell Column P it's modified and not when I double click on it.
Here's the code that I'm using...
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("P:P")) Is Nothing Then
If Intersect(Target, Range("P:P")).Offset(, -4) <> "" And Intersect(Target, Range("P:P")).Offset(, -12) <> "" Then
Intersect(Target, Range("P:P")).Offset(, 3) = Date
End If
End If
End Sub
Moderator Note: Your post does not comply with our Forum RULES. Use code tags around code.
Posting code between tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.
Highlight your code and click the # icon at the top of your post window.
(I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
Bookmarks