Excel VBA Userform - Execute Sub when something changes

前端 未结 7 499
攒了一身酷
攒了一身酷 2020-12-01 15:09

I have a userform containing lots of text boxes. When ever the values of these text boxes changes, I need to recalculate my end result values based on the textbox values by

7条回答
  •  生来不讨喜
    2020-12-01 15:58

    However, be aware that Textbox controls don't have an Exit event (that event is actually part of the userform) so you really will have to use the Change event.

    I'm confused. Perhaps this was added in 2007, or perhaps I don't understand the nuances. I use the Exit event on TextBox controls. When I Tab out of the control, or click the mouse on another control, it triggers the Exit event.

提交回复
热议问题