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_Change(ByVal Target As Range)
Application.EnableEvents = False
If (Target.Address = "$AF$7") Then
ActiveCell.Offset(0, 7).Select
ActiveCell.FormulaR1C1 = "today()"
Application.EnableEvents = True
End Sub
This does not error - but it doesn't post the date (or in fact anything!)
Please help!