0
有人可以帮我弄清楚为什么我得到这个错误吗?这里是我的代码,它说就行的错误开始3错误424所需对象3
Sub Select_Button()
Msg = ""
For i = 0 To ListBox7.ListCount - 1
If ListBox7.Selected(i) Then
Msg = Msg & ListBox7.List(i) & vbNewLine
End If
Next i
MsgBox "You Selected: " & vbNewLine & Msg
Unload UserForm
End Sub
add'Option Explicit',它会告诉你你还没有定义哪个部分。 – cyboashu