Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default Control Exit event

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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't exit Design mode because control 'SignCal' can not be created...? VB Andrew[_8_] Excel Discussion (Misc queries) 0 November 26th 08 03:34 PM
call a function on control click event tkraju via OfficeKB.com Excel Discussion (Misc queries) 7 August 25th 06 07:22 AM
Capture event when exit Column G zSplash Excel Discussion (Misc queries) 2 December 27th 04 05:28 PM
Event hundler to control the Excel function arguments Yattabi Excel Worksheet Functions 0 December 6th 04 10:41 PM
Cannot get appropriate Event fired with WinSock control Tetsuya Oguma[_3_] Excel Programming 0 October 22nd 03 08:14 AM


All times are GMT +1. The time now is 12:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"