Control Renaming Event Bug

Software Bug

Since I’m on the subject of Event bugs…

It only makes sense to mention another longstanding bug when renaming controls!  One that I was reminded of by a recent comment on my YouTube channel by Xavier Batlle (@xavierbatlle1828)

Events also are lost when controls are renamed.Xavier Batlle

Issue 1 – Loss of Actual Event Code

In the cases that a control has Event Procedures and you rename the control, the associated Event Procedure VBA code is not renamed along with the control and thus we end up with orphaned code.  Why not????
 

Issue 2 – Event Procedure property value remains

Moreover, thinking of Issue 1, although the actual VBA code is not renamed, so there is no longer any Event Procedures remaining, the event properties continue to have [Event Procedure] as their value.  Well, if the code didn’t follow, these no longer make any sense to have.
 
 
 
If you preserve the Event Procedure, then the code should also follow.
If you don’t preserve the VBA Code, then the Event Procedure should not follow as it induces developers to believe everything is intact, when it is not!