Modifocation time of a cell

MoHassan

New Member
Joined
May 20, 2016
Messages
3
Dears
Really i need your help as i want an equation or a code to detect the modification time of a certain cell as a static text
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Dears
Really i need your help as i want an equation or a code to detect the modification time of a certain cell as a static text
Hi MoHassan, welcome to the boards.

Without knowing more information I will have to speculate somewhere as to what cell we are looking at and where you want the date and time stamp to go.

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Then
     Range("B1").Value = Now()
End If
End Sub

Armed with the above you just need to right-click on the desired tab and select View Code. In the window that opens simply copy / paste in my code from above. Change the $A$1 part to the cell you want to track and the B1 to the cell you want to update with the date and time stamp.
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,429
Members
448,961
Latest member
nzskater

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