EXCEL VBA: dblClick, Repetitive Code Improvement
问题 I have a bunch of similarly constructed userforms with many identical objects on them. For my labels (which number over 50), I have created a dblClick event to allow the users to change the caption. This is working fine-&-all, but I'm wondering if there's a way for me to improve my code. Is there a way to be able to avoid making dozens of copies of the same code just to handle the same event on different objects? Here is my code: Private Sub Item1_Label_dblClick(ByVal Cancel as MSForms