Firstly, as per my previous post, there is an error in the code. (I am sure
the error was inadvertant and we all make them). Change the second last line
of code Application.EnableEvents = False
to
Application.EnableEvents = True
When events have been turned off, if they are not turned on again in code,
then they remain off for the remainder of the Excel session and no events
will run until events is turned on again.
If events are turned off and not turned back on again either due to code
error or a failure of the code before they are turned back on then it is then
necessary to run a separate sub on its own like the following to turn them
back on again:-
Sub Reset_Events()
Application.EnableEvents = True
End Sub
Secondly, in the VBA editor, did you select ThisWorkbook in the VBA Project
Explorer and place the code in there?
I tested the code (with my modification) and it works.