H
Hajo
Hello,
I'm wondering why I've no success in reading out selected ListBox rows in
the function of AfterUpdate Event of the ListBox:
Private Sub lstTestListBox_AfterUpdate()
If lstTestListBox.ItemsSelected.Count > 0 Then
Debug.print "Something selected"
End If
End Sub
I assume that after selecting a row in the ListBox the AfterUpdate event
will get triggered. But no selection is "counted", even though one row is
definitely selected. And indeed, lstTestListBox.ItemsSelected.Count is one
if I read it out of another function. But it doesn't work with AfterUpdate.
Why?
Thank you,
Hajo
I'm wondering why I've no success in reading out selected ListBox rows in
the function of AfterUpdate Event of the ListBox:
Private Sub lstTestListBox_AfterUpdate()
If lstTestListBox.ItemsSelected.Count > 0 Then
Debug.print "Something selected"
End If
End Sub
I assume that after selecting a row in the ListBox the AfterUpdate event
will get triggered. But no selection is "counted", even though one row is
definitely selected. And indeed, lstTestListBox.ItemsSelected.Count is one
if I read it out of another function. But it doesn't work with AfterUpdate.
Why?
Thank you,
Hajo