【发布时间】:2014-03-01 03:50:11
【问题描述】:
我有一个关于 If 命令的问题。
For x = 2 To 8
If ComboBox1.ListCount < 7 Then ComboBox1.AddItem Cells(x, 13).Value
Next x'
为什么这可以正常工作?没有 End if 语句。 我不知道这是否重要,但这段代码在 UserForm_Activate() 过程中。
感谢您的帮助。
【问题讨论】:
标签: vba excel if-statement