Can you get the highlighted text in a listbox cell?

Is it possible to retrieve the selected (highlighted) text in a listbox cell?

For example, if the listbox cell contains “ABCDE” is there a way to tell if only “BCD” is highlighted (selected)?

Yes. Take a look here:

At the bottom of the page Paul posted:


is what you’re looking for.

Thanks. It works perfectly!