Sandeep Mewara was trying to tell you to use
selecteditem
object, not
ListBox1.SelectedItems(LBitmCounter)
. In my example i replaced it with
oItem
For Each oItem As [Object] In ListBox1.SelectedItems
If oItem.ToString = "Text 1" Then
Action 1
ElseIf oItem.ToString = "Text 2" Then
Action 2
ElseIf oItem.ToString = "Text 3" Then
Action 3
End If
Next
Learn about
SELECT CASE[
^] statement.