Run a macro when the date is changed..

Closed
SARC - 22 Aug 2010 à 22:25
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 24 Aug 2010 à 08:49
Hello,

I have a simple code to continue a serial number every time i reopen a workbook,.. heres the code..

Private Sub Workbook_Open() 

Sheets("Sheet1").Range("A5") = Sheets("Sheet1").Range("A5") + 1 
End Sub


(this code was done for me by "Rizvisa)

I would like to know if its possible for this formula to work only if i change the date on cell E7.

Thanks....

1 response

rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 766
24 Aug 2010 à 08:49
You have to use Change event of that sheet. Just as this was open event of the workbook