Modify a cell when another cell is modified

Gaviota

New Member
Joined
Oct 27, 2010
Messages
16
Hi, all of you.
I have a colum with DATE and another with COMENT.
¿Is it possible to change the DATE cell to TODAY when I leave, modifing, the COMENT cell?
Best regards.
 

Some videos you may like

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Hi. Assuming that the comment column is B and you want the date in A try this. Right click the sheet tab, select View Code and paste in

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 2 Then
    Application.EnableEvents = False
    Target.Offset(, -1).Value = Date
    Application.EnableEvents = True
End If
End Sub
 

Gaviota

New Member
Joined
Oct 27, 2010
Messages
16
Thanks a lot VoG for your fast answer. It works fine.
I changed coll 2 to 4 becauce COMENT is in D and DATE is in C.
¿Can you explain what is that? I mean, its looks as a macro but it isn't.
Thera are no an added MODULE.
Best regards
 

Watch MrExcel Video

Forum statistics

Threads
1,109,032
Messages
5,526,353
Members
409,697
Latest member
christopherlewis1620

This Week's Hot Topics

Top