Is there a way to unselect a listbox item?
Example:
I am in listbox B and select a row, then I move to a command button or to listbox A. Is there a way to unselect the row in listbox B (nothing selected).
Me!lstSource.Selected(intCurrentRow) = False
or for a number of items:
Private Sub cmdDeselect_Click()
Dim intCurrentRow As Integer
For intCurrentRow = 0 To lstSource.ListCount - 1
If Me!lstSource.Selected(intCurrentRow) = True Then
Me!lstSource.Selected(intCurrentRow) = False
End If
Next intCurrentRow
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.