Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道这很简单,但我就是不知道怎么做。
我想做的就是创建一个带有索引的组合框!我正在这样做:
combobox.AddItem "test", 1
但我遇到了错误!如果我不放置索引,它会起作用!
我该怎么做?
对不起这个愚蠢的问题!
这里有一些代码可能有助于了解组合框:
Private Sub UserForm_Click() ComboBox1.AddItem "Col-1 Item-" & ComboBox1.ListCount + 1 ComboBox1.List(ComboBox1.ListCount - 1, 1) = "Col-2 Item-" & ComboBox1.ListCount End Sub