简体   繁体   English

什么是Excel VBA组合框更改事件?

[英]what is excel VBA combobox change event?

I am writing a VBA code in my excel. 我在Excel中编写VBA代码。 I have combox box in my worksheet in excel. 我在Excel的工作表中有combox框。 I want to run specific sub-routine when different item in the comboxbox is selected by user. 当用户在comboxbox中选择了其他项目时,我想运行特定的子例程。

Is there any event when the combobox is updated ? 组合框更新时是否有任何事件?

Thank you for help in advance 预先感谢您的帮助

  • Go into the code module for your sheet. 进入工作表的代码模块。
  • Select your combobox from the objects dropdown. 从对象下拉列表中选择您的组合框。
  • Change is the default event but if you needed another event the available events are in the other drop down to the right. 更改是默认事件,但如果需要其他事件,则可用事件在右侧的另一个下拉列表中。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM