I would like that when any changes are made to the sheet, the date in cell P4 should change to todays date and stay that way (NOT the NOW() FUNCTION) and close.
I put this code into the sheet, placed a breakpoint in this event and when I close the sheet it does not trigger this event. what am I doing wrong or where should I place the code that it it should be triggered (NOTE: THe work consists of one worksheet.)
Thanks in advance for your help!!
I put this code into the sheet, placed a breakpoint in this event and when I close the sheet it does not trigger this event. what am I doing wrong or where should I place the code that it it should be triggered (NOTE: THe work consists of one worksheet.)
Code:
Sub Workbook_BeforeClose(Cancel As Boolean)
Range("P4").Select
ActiveCell.FormulaR1C1 = Date
End Sub
Thanks in advance for your help!!