I have a worksheet that only receive updates from other sheet with filter formula, no manual entry at all occurs in this sheet and I need a code to add the current date Now() in cell "C3" as soon as the sheet receive any update from the source sheet ..
I have a code but it insert the date based on sheet edit not update
any suggestions please..
I have a code but it insert the date based on sheet edit not update
any suggestions please..
VBA Code:
[Private Sub Worksheet_Change(ByVal Target As Range)
' Code to put the date of the latest update following a change in the corresponding cell in column F
Dim WorkRng As Range, roww As Long
Dim rng As Range
Set WorkRng = Intersect(Range("P:O"), Target)
If Not WorkRng Is Nothing Then
Application.EnableEvents = False
For Each rng In WorkRng
roww = rng.Row
If Not rng.Value = "" Then
Range("C3").Value = Now
Range("C3").NumberFormat = "yy/mm/dd"
Else
Range("C3").ClearContents
End If
Next
Application.EnableEvents = True
End If]