如何在excel VBA中的表单中添加项到组合框? [英] How to add items to a combobox in a form in excel VBA?
本文介绍了如何在excel VBA中的表单中添加项到组合框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是VBA的新人。我想创建一个表单,其中用户选择一个组合框的项目,选择运行一个宏。我在VBA中创建了一个用户表单,但我无法添加项到Combobox.When用户打开窗体我想要的选择
谢谢
解决方案
我找到了这个;
从这里开始;
这可能有帮助;
我在这里添加了一个演示; / p>
使用填充盒xlsm 播放
I am new to VBA. I want to create a form where a user selects an item of a combobox and the selection runs a macro.I created a user form in VBA but I am unable to add items to the Combobox.When a user opens the form I want the choices in the combobox to be already loaded.how can I accomplish this?
Thank You
解决方案
I found this;
from here;
vba- Can a combobox present more then one column on it's textbox part?
and this may help;
I added a sort of demo here;
Playing with populating boxes.xlsm
这篇关于如何在excel VBA中的表单中添加项到组合框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文