Timestamp in cell if other cell is updated.

amitdelpanwar

New Member
Joined
Jul 4, 2017
Messages
4
ABC
1DATAcurrent timestamp ?
2
3
4

<tbody>
</tbody>

Kindly help to auto insert current timestamp in Cell B1 when cell A1 is modified. worksheet is shared with 4 users and all users enter data on it.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Right-click on the sheet tab name at the bottom of the screen that you want to update, select "View Code", and paste this code in the resulting VB Editor window:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    
    Dim rng As Range
    Dim cell As Range
    
    Set rng = Intersect(Target, Range("A:A"))
    
    If Not rng Is Nothing Then
        For Each cell In rng
            Application.EnableEvents = False
            cell.Offset(0, 1) = Now()
            Application.EnableEvents = True
        Next cell
    End If
    
End Sub
This should do what you want automatically.
 
Upvote 0
Thanks Joe 4 replying.

As I already told that this excel(xlxs) file is shared between 4 users and they update this file at same time. But after this code I have to save this file in "XLXM" format. Because of this others user will not able to update at same time.
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,826
Members
449,190
Latest member
rscraig11

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