如何在excel VBA的表单中将项目添加到组合框? [英] How to add items to a combobox in a form in excel VBA?
本文介绍了如何在excel VBA的表单中将项目添加到组合框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是 VBA 新手.我想创建一个表单,其中用户选择组合框的一个项目并且选择运行一个宏.我在 VBA 中创建了一个用户表单,但我无法向组合框添加项目.当用户打开表单时,我想要选择在已经加载的组合框中.我怎样才能做到这一点?
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?
谢谢
推荐答案
我找到了这个;
从这里;
这可能会有所帮助;
我在这里添加了一种演示;
I added a sort of demo here;
这篇关于如何在excel VBA的表单中将项目添加到组合框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文