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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
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.
 

Hartley

New Member
Joined
Sep 30, 2012
Messages
2
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
 

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
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.
 

pjmorris

Well-known Member
Joined
Aug 2, 2012
Messages
1,991
Office Version
  1. 2016
Platform
  1. Windows
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.
 

Forum statistics

Threads
1,136,863
Messages
5,678,202
Members
419,750
Latest member
crp

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
Top