vba中的_是什么作用

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
代码换行符。

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网