Add event listener to Excel Textbox (lose focus)
问题 I need to fire an sub or a command when a user is done using a text box in Excel. I have tried using the AfterUpdate() event and the LoseFocus() event like this: Public Sub Kommentar_AfterUpdate() MsgBox ("Hurray") End Sub The text box is named Kommentar and is inside the sheet Radio . Also, where is the code supposed to be written? i have tried placing it in code sheet for the Radio sheet, and in a separate module. Any tip, hint or answer is appreciated! 回答1: For embedded ActiveX Excel