+ Reply to Thread
Results 1 to 3 of 3

way to run sub after user exits textbox

  1. #1
    Forum Contributor funkymonkUK's Avatar
    Join Date
    01-07-2005
    Location
    London, England
    Posts
    500

    way to run sub after user exits textbox

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

  2. #2
    Tom Ogilvy
    Guest

    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" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > 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. #3
    K Dales
    Guest

    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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1