Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need a macro to auto insert in an adjacent call the date data is entered in
a cell. The following does not work because "Now" changes every day: =IF(CK3<"",NOW(),"") |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This tiny macro looks for changes in column A and puts the date in the
corresponding row in column B: Private Sub Worksheet_Change(ByVal Target As Range) If Intersect(Target, Range("A:A")) Is Nothing Then Exit Sub Target.Offset(0, 1) = Now End Sub This should be copied to worksheet code, not a standard module. -- Gary's Student "Jim scrivener" wrote: I need a macro to auto insert in an adjacent call the date data is entered in a cell. The following does not work because "Now" changes every day: =IF(CK3<"",NOW(),"") |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is some code that should do what you want... Paste this into the sheet
(right click the sheet tab and select view code). This code works on Cell CK3 but you can change it to whatever range you want... Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Range("CK3")) Is Nothing Then _ Target.Offset(0, 1).Value = Now() End Sub -- HTH... Jim Thomlinson "Jim scrivener" wrote: I need a macro to auto insert in an adjacent call the date data is entered in a cell. The following does not work because "Now" changes every day: =IF(CK3<"",NOW(),"") |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Data entered in one record is shifting to others | New Users to Excel | |||
how do I record the time data is entered into a spreadsheet? | Excel Worksheet Functions | |||
date and time entered when a cell contains data | Excel Programming | |||
recording the date when record was entered in cell in Excel | Excel Worksheet Functions | |||
Input Date when data is entered into another cell | Excel Worksheet Functions |