Hi, Zvoni!
Strange, really... but after compiling and running your test project, it worked fine!
I will implement myself the defences against bad inputs (in fact part of them are already implemented in my test code).
Thank you very much!
With warmest regards,
Beware: My logic is not fully formulated.
It works, if you only have 9 or less items in the Listbox. The Moment you have 10 or more my sample above doesn't work anymore.
Think about it: How will the Edit-Box know, if you enter "1" (My Code executes and selects Item1) that there is still a "3" coming (because you want to select Item 13, in that case DE-Selecting Item1 and selecting Item13)?
To fully and correctly process the entry, you'll probably have to switch from OnChange to OnKeyDown or to OnKeyPress (or a combination of all 3)
legal Characters: Digits and "/"
in OnKeyDown/OnKeyPress you "wait" for the "/" being entered before jumping into my code (split, for-loop, if-then-else).
And even that is not bullet-proof, since your Edit-Box will never know when you're done.
There is still more thinking to do