Follow the changes in cell

shimaa01234

Active Member
Joined
Jun 24, 2014
Messages
446
Is there a way to know the date of registration of the value of cell
Is it possible to do so, by code or formula
I use Office 2003
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Which cell would you need this to work for (Is it a single cell or a whole column)?

Where would you like the date/time to be placed?
 
Upvote 0
Paste this code into the worksheet object that you wish it to run, do not add it to a standard module:

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Target.Worksheet.Range("A1:A10")) Is Nothing Then
        Target.Offset(, 1).Value = Format(Now(), "dd/mm/yy hh:mm:ss")
    End If
End Sub
 
Upvote 0
Wonderful, but I want to "date and time" appear in the "Comment"
And not in the adjacent cell

-- removed inline image ---
 
Last edited:
Upvote 0
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Target.Worksheet.Range("A1:A10")) Is Nothing Then
        If Not Target.Comment Is Nothing Then
        Target.Comment.Text Format(Now(), "dd/mm/yy hh:mm:ss")
        Else
        Target.AddComment Format(Now(), "dd/mm/yy hh:mm:ss")
        End If
    End If
End Sub
 
Upvote 0
a wonderful ,Code
Thank you very much Mr. " Comfy"
But I have a last Request
Can you control the display of "commentary"
 
Upvote 0

Forum statistics

Threads
1,214,817
Messages
6,121,717
Members
449,050
Latest member
MiguekHeka

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top