【发布时间】:2019-05-17 21:45:42
【问题描述】:
我知道如何遍历括号中的数字,例如
For i = 0 To (ComboBox4.ListCount - 1)
If ComboBox4.Value = ComboBox4.List(i) Then inList = True
Next i
但是我怎样才能遍历不在括号中的数字呢?喜欢连续编号的名字:
Me.ComboBox1.Value = ""
Me.ComboBox2.Value = ""
Me.ComboBox3.Value = ""
我试过了:
for i=1 to 3
"Me.ComboBox"&i&".Value" = ""
next i
但这不起作用。它应该是什么样子?
【问题讨论】: