nbrown6
09-03-2019, 11:00 AM
Hi all,
Again i come cap in hand after not being able to work something out.
I have a userform which i am trying to use with a hand scanner input. As the scanner effectively presses the CR at the end of the string, im using the textbox1_exit event to trigger the code to deal with the string.
I then have it setting the textbox.value to "" to clear the box.
But i would like it to then become the focus again. Using the userform.TextBox1.setfocus it works, but only if i step through the code. As soon as the _exit event finishes, it then selects the next control.
Im trying to find a control that acts on the enter key being pressed?
Cheers All
Again i come cap in hand after not being able to work something out.
I have a userform which i am trying to use with a hand scanner input. As the scanner effectively presses the CR at the end of the string, im using the textbox1_exit event to trigger the code to deal with the string.
I then have it setting the textbox.value to "" to clear the box.
But i would like it to then become the focus again. Using the userform.TextBox1.setfocus it works, but only if i step through the code. As soon as the _exit event finishes, it then selects the next control.
Im trying to find a control that acts on the enter key being pressed?
Cheers All