Why is a (Excel VBA) combobox change event triggering every time one of its properties is referenced?

后端 未结 1 1618
一个人的身影
一个人的身影 2021-01-20 07:12

I\'m a first time user on this forum. Here\'s my scenario: On a userform, I have a combobox, two textboxes and an \'OK\' button. When the user makes a makes a selection f

1条回答
  •  礼貌的吻别
    2021-01-20 08:10

    What is the source for the combobox items? If it is linked to a range then the change event is triggered because writing to the worksheet changes the linked source which in turn means the combobox refreshes itself.

    If you do not want this to happen then you will need to 'cache' the values from the range into an array and populate the combox with them.

    0 讨论(0)
提交回复
热议问题