【发布时间】:2019-08-09 18:06:00
【问题描述】:
在 Excel 中,我正在更新一个标签,该标签对列表框的选定项目进行计数。 每次我取消选择一个时,标签都会倒数。 我使用此代码:
将 intIndex 调暗为整数 将 intCount 调暗为整数
With ListBox6
For intIndex = 0 To .ListCount - 1
If .Selected(intIndex) Then intCount = intCount + 1
Next
End With
Label1.Caption = "Deelnemers: " & intCount & " op " & ListBox6.ListCount
我正在尝试在访问中做同样的事情,但它不起作用。
【问题讨论】:
标签: excel vba ms-access-2010