Originally Posted by
nordicdust
Thank you Akuini
This is perfect, I will mark this as Solved.
You're welcome, glad to help.
I modify the code a bit to limit the keypress (in the listbox) to Enter key.
Just a thought:
I don't know what the OK button does, but to reduce the steps you need to take, you can just move the code (for your OK button) to the 'Private Sub Listbox_RESULTAT_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)'. That way you won't need the OK button anymore.
For example:
In the modified code above I add :
comment out the line to see what happen. I mean you can put in there the code to do what your OK button do .
Bookmarks