Change to a Cell causes action
'-----------------------------------------------------------------
Private Sub Worksheet_Change(ByVal Target As Range)
'-----------------------------------------------------------------
Const WS_RANGE As String = "A3:A10"
On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
If .Value = "" Then
.Offset(0, 1).Value = ""
Else
.Offset(0, 1).Value = Format(Time, "hh:mm:ss")
End If
End With
End If
ws_exit:
Application.EnableEvents = True
End Sub
'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.
--
HTH
Bob Phillips
(remove nothere from email address if mailing direct)
"Jordan" wrote in message
...
Good Morning,
I would like to solve this with a formula if at all possible. I want my
workbook to record, in the adjacent cell, when someone makes a change to a
cell in column A. So in cells B3:B10 the equations a
=IF(A3="","",NOW())
=IF(A4="","",NOW())
and so on. The problem I have is that when I update any of those cells,
the
dates for all of them change. Is there a way to setup the workbook so
that
if someone updates A5, only the date in B5 changes?
Thanks a bunch,
jordan
|