Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi!
I have column "A" for date. I want to do that if I enter data in column "B" column, Column "A" automaticcaly insert today date. I have the following function but when I open my worksheet next time it automatically change that date to current date. =IF(B6="","",TODAY()) Is this possible. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Take a look at JE McGimpsey's site:
http://www.mcgimpsey.com/excel/timestamp.html sheryar khan wrote: Hi! I have column "A" for date. I want to do that if I enter data in column "B" column, Column "A" automaticcaly insert today date. I have the following function but when I open my worksheet next time it automatically change that date to current date. =IF(B6="","",TODAY()) Is this possible. -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Right-click on the sheet tab and "View Code"
Copy/paste this event code into that sheet module. Private Sub Worksheet_Change(ByVal Target As Range) On Error GoTo ws_exit: Application.EnableEvents = False If Not Intersect(Target, Me.Range("B:B")) Is Nothing Then With Target If .Value < "" Then .Offset(0, -1).Value = Format(Now, "dd mmm yyyy hh:mm:ss") End If End With End If ws_exit: Application.EnableEvents = True End Sub When data is entered in column B a static date/time will be entered in column A Gord Dibben MS Excel MVP On Tue, 4 Aug 2009 09:06:37 -0700 (PDT), sheryar khan wrote: Hi! I have column "A" for date. I want to do that if I enter data in column "B" column, Column "A" automaticcaly insert today date. I have the following function but when I open my worksheet next time it automatically change that date to current date. =IF(B6="","",TODAY()) Is this possible. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Automatically insert last updated date | Excel Discussion (Misc queries) | |||
insert DATE automatically | Excel Discussion (Misc queries) | |||
Insert date automatically | Excel Discussion (Misc queries) | |||
Automatically Insert DATE, so that DATE will NOT change | Excel Worksheet Functions | |||
Insert date automatically | Excel Discussion (Misc queries) |