Hi all, I have a userform, with textboxes within to accept input from users. In the exit events of these textboxes, i do data validation.
When the data entered by user is not valid, i prompt a messagebox and set the cancel property of the exit event to true.
As i test my application, i play around with the controls.
Thing is, i am puzzled why the exit event is triggered even when the control is clicked, and this cause the messagebox to appear 2 times. It is pretty irritating and i wish to get rid of it.
Could anybody kindly explain to me what exactly triggers the exit event?
Any ideas?
Thanks alot
Excel 2003
Shie Boon
When the data entered by user is not valid, i prompt a messagebox and set the cancel property of the exit event to true.
As i test my application, i play around with the controls.
Thing is, i am puzzled why the exit event is triggered even when the control is clicked, and this cause the messagebox to appear 2 times. It is pretty irritating and i wish to get rid of it.
Could anybody kindly explain to me what exactly triggers the exit event?
Any ideas?
Thanks alot
Excel 2003
Shie Boon