ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How can a timestamp in an Excel row be automatically updated if a. (https://www.excelbanter.com/excel-worksheet-functions/21647-how-can-timestamp-excel-row-automatically-updated-if.html)

dt

How can a timestamp in an Excel row be automatically updated if a.
 
I need a time stamp in each row of a ca. 300 row spreadsheet of user
information such that the timestamp is automatically updated if any cell in
its respective row is changed.

My question: is this possible using Excel?


Duke Carey

Only with VBA code

Assuming your time stamp is in column A. If some other column, change the
column number in the code below

right click the tab for the sheet in question and choose View Code, then
paste this in

Private Sub Worksheet_Change(ByVal Target As Range)
' next line assumes column A - change the number if a different column
Const ColumnNumber = 1

Cells(Target.Row, ColumnNumber).Value = Now()

End Sub





"dt" wrote:

I need a time stamp in each row of a ca. 300 row spreadsheet of user
information such that the timestamp is automatically updated if any cell in
its respective row is changed.

My question: is this possible using Excel?



All times are GMT +1. The time now is 01:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com