View Single Post
  #2   Report Post  
Paul B
 
Posts: n/a
Default

CC, here is one way using Worksheet_Change event

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
'will put date & time in column C when something is put in B
If Target.Count 1 Then Exit Sub
If Target.Column = 2 Then
Target.Offset(0, 1).Value = Now() 'change Now() to Date if you want the date
only
End If
End Sub

To put in this macro right click on the worksheet tab and view code, in the
window that opens paste this code, press Alt and Q to close this window and
go back to your workbook. If you are using excel 2000 or newer you may have
to change the macro security settings to get the macro to run. To change the
security settings go to tools, macro, security, security level and set it to
medium



"CC" wrote in message
...
I keep a list of students and activities. Because the number of students
per
activity is limited, I would to track the date and time when they selected
their activity:
Student Activity Date
--------- -------- -----------
Smith Tennis 02/01/05

I would like the cells in the Date column to change automatically when the
Activity value is changed.
Thanks a lot,