用VBA封装组合框 [英] CONDING COMBOBOXES WITH VBA

查看:85
本文介绍了用VBA封装组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用VBA代码对组合框进行编码,以便输入组合框的值填充特定列的行?

解决方案


您需要使用事件触发器每当您在组合框中添加新项目/更改项目时,这将触发。


在触发器内部,您可以添加代码以更新工作表上的列和行。


Private Sub ComboBox1_Change()

End Sub


How does one code a combobox with VBA code so that values entered into the combobox populate the rows of a specific column?

解决方案

You need to use the event trigger This will fire whenever you add a new item/change an item on the combobox.

Inside the trigger you can add the code to update the columns and rows on the sheets.

Private Sub ComboBox1_Change()
End Sub


这篇关于用VBA封装组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆