从单元格值填充userform上的组合框 [英] Populate a combobox on a userform from cell values
本文介绍了从单元格值填充userform上的组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从单元格B2填充一个组合框(在用户窗体上),然后用户选择输入多少。
How does one populate a combobox (on a userform) from cell B2 to however many the user chooses to enter.
推荐答案
对于一列值:
Me.myCombo.List = Worksheets("mySheet").Range("B2:B100").Value
对于一行值:
Me.myCombo.List = Application.Transpose( _
Worksheets("mySheet").Range("B2:M2").Value)
这篇关于从单元格值填充userform上的组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文