Adding Timestamp that updates automatically when data is changed

mmcquinn2002

New Member
Joined
Apr 5, 2020
Messages
13
Office Version
  1. 2016
Platform
  1. Windows
Hi there,

I have a data sheet which contains row wise data of groups in Columns B to K. I would like to add a Timestamp for every row in Column L which updates automatically even if a single column in the row is updated. By the way, the data is updated manually.



Thanks in advance.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Your request isnt entirely clear but think you could achieve what you are after through a worksheet change event

VBA Code:
Private Sub Worksheet_Change(ByVal Target As range)
If Not Application.Intersect(Target, ActiveSheet.Range("B:K")) Is Nothing Then
    Range("L" & Target.row) = Now()
End If
End Sub
 
Upvote 0
Your request isnt entirely clear but think you could achieve what you are after through a worksheet change event

VBA Code:
Private Sub Worksheet_Change(ByVal Target As range)
If Not Application.Intersect(Target, ActiveSheet.Range("B:K")) Is Nothing Then
    Range("L" & Target.row) = Now()
End If
End Sub
Thanks for your reply.

Simply put,
I have a set of data for a number of groups which is entered manually in the corresponding columns (Column B to Column K).
Each row represents and contain data for a single group.

What i would like to do is to I would like to add a Timestamp for every row in Column L which updates automatically even if a single column in the particular row is updated.

For example,

1. Row 1 contains data for Group1, which is entered in Columns B to Column K and Row 2 contains data for Group 2 and so on.
2. Data for Group1 is entered in Cells A1 to K1 and data for Group 2 is entered in Cells A2 to K2.
3. So for Group 1 i would like to have a Timestamp in cell L1 if data in any cell, i.e., in any of A1 to K1, is changed, and similarly for Group 2 if any data in cells A2 to K2 is changed.
 
Upvote 0
Thanks for your reply.

Simply put,
I have a set of data for a number of groups which is entered manually in the corresponding columns (Column B to Column K).
Each row represents and contain data for a single group.

What i would like to do is to I would like to add a Timestamp for every row in Column L which updates automatically even if a single column in the particular row is updated.

For example,

1. Row 1 contains data for Group1, which is entered in Columns B to Column K and Row 2 contains data for Group 2 and so on.
2. Data for Group1 is entered in Cells A1 to K1 and data for Group 2 is entered in Cells A2 to K2.
3. So for Group 1 i would like to have a Timestamp in cell L1 if data in any cell, i.e., in any of A1 to K1, is changed, and similarly for Group 2 if any data in cells A2 to K2 is changed.
the code i supplied will do that. As you did not mention column A in your origional post it was written for the range you specified.
Just change the

VBA Code:
If Not Application.Intersect(Target, ActiveSheet.Range("B:K")) Is Nothing Then

to

VBA Code:
If Not Application.Intersect(Target, ActiveSheet.Range("A:K")) Is Nothing Then

you need to make sure the code is placed in the sheet code and not a module
 
Upvote 0
Solution

Forum statistics

Threads
1,214,929
Messages
6,122,314
Members
449,081
Latest member
tanurai

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