Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default way to run sub after user exits textbox


any idea how to run a piece of code once a user has exited a textbox?


--
funkymonkUK
------------------------------------------------------------------------
funkymonkUK's Profile: http://www.excelforum.com/member.php...o&userid=18135
View this thread: http://www.excelforum.com/showthread...hreadid=386376

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default way to run sub after user exits textbox

If on a userform, use the exit event. If your position is that that is
before the exit, then there is no event after the exit. There may be a
workaround, but that would require knowing what you want to do.

--
Regards,
Tom Ogilvy


"funkymonkUK"
wrote in message
...

any idea how to run a piece of code once a user has exited a textbox?


--
funkymonkUK
------------------------------------------------------------------------
funkymonkUK's Profile:

http://www.excelforum.com/member.php...o&userid=18135
View this thread: http://www.excelforum.com/showthread...hreadid=386376



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default way to run sub after user exits textbox

Assuming it is a textbox from the Controls toolbox, right click and choose
View Code, then in the header section of the code pane write your code in the
LostFocus event procedure (e.g. Private Sub TextBox1_LostFocus())

If it is on a UserForm, same idea but it would go in TextBox1_Exit()


"funkymonkUK" wrote:


any idea how to run a piece of code once a user has exited a textbox?


--
funkymonkUK
------------------------------------------------------------------------
funkymonkUK's Profile: http://www.excelforum.com/member.php...o&userid=18135
View this thread: http://www.excelforum.com/showthread...hreadid=386376


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
How can I expose the TextBox BeforeUpdate event to my user class? bereid Excel Discussion (Misc queries) 0 November 30th 05 05:00 PM
User Form in VB = TextBox Kel Excel Discussion (Misc queries) 1 August 11th 05 12:26 AM
Textbox trouble on a user form Oreg[_3_] Excel Programming 7 May 27th 04 12:36 AM
Format of a textbox on a user form controled by a spinner Jeff[_20_] Excel Programming 1 September 9th 03 05:09 AM
User Form textbox formatting Neal[_2_] Excel Programming 0 August 20th 03 08:14 PM


All times are GMT +1. The time now is 07:42 AM.

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"