Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hello I copied the following macro and I entred the macro n the worksheet
module this is what I'm looking for. If one of the following cells is not blank B59, B 60 B 61 B 63 but has a name that has been selected from a drop down box then in column c I want a static current date and time Macro does not work thanks for your help Private Sub Worksheet_Change(ByVal Target As Excel.Range) With Target If .Count 1 Then Exit Sub If Not Intersect(Range("B59:B63"), .Cells) Is Nothing Then Application.EnableEvents = False If IsEmpty(.Value) Then .Offset(0, 1).ClearContents Else With .Offset(0, 1) .NumberFormat = "dd mmm yyyy hh:mm:ss" .Value = Now End With End If Application.EnableEvents = True End If End With End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I set a static date? | Excel Worksheet Functions | |||
Static date | Excel Discussion (Misc queries) | |||
static date | Excel Worksheet Functions | |||
Static Date | Excel Discussion (Misc queries) | |||
DATE STATIC | Excel Worksheet Functions |