ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   static date in new file when data entered in another (https://www.excelbanter.com/excel-worksheet-functions/178162-static-date-new-file-when-data-entered-another.html)

HELP me please

static date in new file when data entered in another
 
Need help on this one. I want to enter the number "one" in any cell in a
column that will trigger entering todays date statically in the cell to the
right of that cell.

Mike H

static date in new file when data entered in another
 
Right click the sheet tab, view code and paste this in. Change the column to
suit

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count 1 Or IsEmpty(Target) Then Exit Sub
If Not Intersect(Target, Range("A:A")) Is Nothing Then
Application.EnableEvents = False
If Target.Value = 1 Then
Target.Offset(0, 1).Value = Date
End If
Application.EnableEvents = True
End If
End Sub

Mike

"HELP ME PLEASE" wrote:

Need help on this one. I want to enter the number "one" in any cell in a
column that will trigger entering todays date statically in the cell to the
right of that cell.


HELP ME PLEASE

static date in new file when data entered in another
 


"HELP ME PLEASE" wrote:

Thank you very much your a genius! How do I make it work on more than one
column? exp. "U:U", "W:W", "Y:Y"


All times are GMT +1. The time now is 09:33 AM.

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