Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi all,
I have a data verification drop down created and I am trying to make the date poplate in certain cells depending on my drop down choice. The main thing I have found for this would be the "today()" value. The problem with this though is that the date changes daily. I need this to be a static value. Any help would be great. Thanks. =IF(K8="closed", TODAY()) |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo ws_exit: Application.EnableEvents = False If Not Intersect(Target, Me.Range("K1:K20")) Is Nothing Then With Target If .Value = "closed" 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 This is sheet event code. Right-click on sheet tab and "View Code" Copy/paste the code into that sheet module. Edit range to suit. Alt + q to return to Excel. Gord Dibben MS Excel MVP On Wed, 3 Feb 2010 11:56:01 -0800, TechGuy wrote: Hi all, I have a data verification drop down created and I am trying to make the date poplate in certain cells depending on my drop down choice. The main thing I have found for this would be the "today()" value. The problem with this though is that the date changes daily. I need this to be a static value. Any help would be great. Thanks. =IF(K8="closed", TODAY()) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formuls to turn date red | Excel Discussion (Misc queries) | |||
Formating Font in a Formuls | New Users to Excel | |||
Formuls updating | Excel Worksheet Functions | |||
how do I do a formuls in excel such as (if a1=somthing then b1=a . | Excel Worksheet Functions | |||
making a column of formuls constant | Excel Worksheet Functions |