you cannot assign value to ListIndex property of listbox, without Setting Focus to it first.
You may also try the code (without setting focus) to:[MyListbox].SetFocus [MyListBox].ListIndex = theNewIndexHere
[MyListbox] = [MyListbox].ItemData(theNewIndexHere)