+ Reply to Thread
Results 1 to 2 of 2

TextBox AfterUpdate event not firing upon hitting enter or tab

  1. #1
    Forum Contributor
    Join Date
    08-20-2019
    Location
    Mumbai
    MS-Off Ver
    Office 365
    Posts
    101

    TextBox AfterUpdate event not firing upon hitting enter or tab

    I have the below code for AfterUpdate event of a textbox (tbQApprPW). It does not run when some value is typed in the textbox and hit enter or tab is pressed.

    However, if I click on any other command button on the userform after typing the value in the textbox, the AfterUpdate code runs.

    How do I get the code to run when user presses Enter or Tab?
    by the way, I have some other code for another textbox on a different userform and it runs fine.

    Something to note: This textbox (tbQApprPW) is not visible by default on the userform. It becomes visible when a command button is hit.

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,529

    Re: TextBox AfterUpdate event not firing upon hitting enter or tab

    normally I would use the textbox_exit event

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Textbox afterUpdate not firing when pressing enter key
    By Sintek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-17-2018, 07:31 AM
  2. AfterUpdate Event Handling for a textbox class
    By kennyparsons in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-15-2018, 11:01 AM
  3. [SOLVED] Userform runs Initialize sub @ beginning of textbox AfterUpdate event w/out being called
    By chirp08 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-18-2016, 01:02 PM
  4. AfterUpdate Event triggered without updating the textbox
    By mschatteles in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-06-2015, 02:24 PM
  5. Userform - Move to next textbox field by hitting enter instead of
    By TimT in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 11-18-2014, 07:38 PM
  6. Hitting the Enter Key in a textbox on a Userform
    By jason_kelly in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-25-2010, 04:39 PM
  7. AfterUpdate event for dynamic TextBox
    By moyo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-20-2007, 02:23 AM

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