Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Seo Services company Manchester

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 07-12-2005, 05:17 AM
funkymonkUK's Avatar
funkymonkUK funkymonkUK is offline
Valued Forum Contributor
 
Join Date: 07 Jan 2005
Location: London, England
Posts: 504
funkymonkUK is becoming part of the community
way to run sub after user exits textbox

Please Register to Remove these Ads

any idea how to run a piece of code once a user has exited a textbox?
Reply With Quote
  #2  
Old 07-12-2005, 09:06 AM
Tom Ogilvy
Guest
 
Posts: n/a
Re: 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" <funkymonkUK.1s1x2c_1121162725.2634@excelforum-nospam.com>
wrote in message
news:funkymonkUK.1s1x2c_1121162725.2634@excelforum-nospam.com...
>
> 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 With Quote
  #3  
Old 07-12-2005, 09:06 AM
K Dales
Guest
 
Posts: n/a
RE: 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 With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Forum Jump