Stridhan
Well-known Member
- Joined
- Mar 5, 2014
- Messages
- 568
Hi
Got a simple userform with textbox1, textbox2 and a commandbutton.
Using the Exit event on both textboxes to do a check if they are empty or contain invalid data, if empty or invalid data the textbox gets the focus.
However, when both textboxes are empty I want to have the option to press the Commandbutton but im trapped within the Exit-event
Is there a workaround?
Got a simple userform with textbox1, textbox2 and a commandbutton.
Using the Exit event on both textboxes to do a check if they are empty or contain invalid data, if empty or invalid data the textbox gets the focus.
However, when both textboxes are empty I want to have the option to press the Commandbutton but im trapped within the Exit-event
Is there a workaround?