Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using Office '97 and I have a userform with a number of TextBox
controls. I am using the TextBox's Exit event to check if the data entered is valid and if it is not valid then I set the Cancel parameter to true to force the user to enter valid data. The problem I have is when someone puts invalid data in the textbox then clicks the cancel button. The problem being that the Exit event of the textbox still occurs but since the cancel button has been clicked the invalid data doesn't matter so I don't want to check the validity of the data. So, how can I tell if the cancel button has been activated (clicked or Esc button pushed) from within the Exit event of the Textbox. Thanks Fred |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't exit Design mode because control 'SignCal' can not be created...? VB | Excel Discussion (Misc queries) | |||
call a function on control click event | Excel Discussion (Misc queries) | |||
Capture event when exit Column G | Excel Discussion (Misc queries) | |||
Event hundler to control the Excel function arguments | Excel Worksheet Functions | |||
Cannot get appropriate Event fired with WinSock control | Excel Programming |