Hi all, this is my first time to post here!
I am helpless now, I cannot display the value of the first and last index of selected items on a list box thru MsgBox. It only displays me boolean values.
Here is the code:
I'm thinking of adding .Value but I don't know where to put that code it gives me error. I appreciate your help on this.
EDIT: I just want to add that the items from the list box are dynamic.
I am helpless now, I cannot display the value of the first and last index of selected items on a list box thru MsgBox. It only displays me boolean values.
Here is the code:
VBA Code:
x = lb2.ListIndex = 0 'get first index of listbox
MsgBox x
I'm thinking of adding .Value but I don't know where to put that code it gives me error. I appreciate your help on this.
EDIT: I just want to add that the items from the list box are dynamic.
Last edited by a moderator: