Listbox and IF/THEN

In my listbox i have an event DoubleClick (tried this with other events too) and depending on the text of the selected row it will open a window.
if me.text=“Go here” then
goHere.show
elseif me.text=“Go there” then
goThere.show
end If
But if you select the top row, both goHere and goThere show.
I tried this with Select Case and go the same results. How can i make it only show the window that its supposed to?

me refers to the listbox, not the row. And use the cellClick event. Then you want something like (if you click in column zero):

if (me.CellValueAt(row, 0)="Go here") Then goHere.Show ()

etc.

1 Like

Thanks for the help