Private Sub CommandButton2_Click()
If ListBox1.ListCount >= 1 Then
If ListBox1.ListIndex = -1 Then
ListBox1.ListIndex = _
ListBox1.ListCount - 1
End If
ListBox1.RemoveItem (ListBox1.ListIndex)
End If
End Sub
这里的下划线是什么意思?
在VBA代码中, "_下划线" 是换行的意思, 有些语句一行太长了不易阅读检查, 故用下划线来换行,
温馨提示:答案为网友推荐,仅供参考
第1个回答 2014-12-25
代码换行符。