I am trying to write a procedure so that when data in row AF of Excel is amended then the date the amendment took place is entered into column AM. I thought I would start by trying to get it to work for one cell rather than a range and did the following:
Private Sub Worksheet_Chang e(ByVal Target As Range)
Application.Ena bleEvents = False
If (Target.Address = "$AF$7") Then
ActiveCell.Offs et(0, 7).Select
ActiveCell.Form ulaR1C1 = "today()"
Application.Ena bleEvents = True
End Sub
This does not error - but it doesn't post the date (or in fact anything!)
Please help!
Private Sub Worksheet_Chang e(ByVal Target As Range)
Application.Ena bleEvents = False
If (Target.Address = "$AF$7") Then
ActiveCell.Offs et(0, 7).Select
ActiveCell.Form ulaR1C1 = "today()"
Application.Ena bleEvents = True
End Sub
This does not error - but it doesn't post the date (or in fact anything!)
Please help!
Comment