how to show date/time cell last edited

Hartley

New Member
Joined
Sep 30, 2012
Messages
2
hi there

I am trying to find a way of showing when a particular cell was last altered. . . Preferably this would show on a mouseover of that particular cell..

Any help would be greatly appreciated thanks

Andy
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Right click the sheet tab, select View Code and paste in

Rich (BB code):
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address(False, False) = "A1" Then
    Target.NoteText Text:=Format(Now, "dd/mm/yyyy hh:mm")
    Application.DisplayCommentIndicator = xlCommentIndicatorOnly
End If
End Sub

Change A1 to suit.
 
Upvote 0
thanks for taking your time to reply - -- unfortunately this doesn't seem to work - -probably because I'm doing something wrong being a new(ish) user - - -any further help would be greatly appreciated - -- thanks again
 
Upvote 0
It works for me.

- macros must be enabled
- the code goes in the sheet's code module
- change A1 to the cell that you want to monitor.
 
Upvote 0
How ingenious!

Only thought from me is that the cell address must use a capital letter ie 'd1' didn't work 'D1' did.

Thanks VoG.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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