+ Reply to Thread
Results 1 to 3 of 3

Userform Textbox change event issue

  1. #1
    Forum Contributor
    Join Date
    10-13-2015
    Location
    California
    MS-Off Ver
    Office 2013
    Posts
    138

    Userform Textbox change event issue

    Hello all,

    I am not sure if there is a way around this but hear me out.

    I have a userform that has a text box. I have a _change event associated with that text box that based on the input in that text box populates other text boxes on the form. Now its almost fully functional... if i open the userform and type 1 in the binbox it updates all the text boxes... if i press the backspace it empties all the below text boxes however if i highlight the text in binbox and change the 1 to a 2 nothing updates... its like highlighting the value and changing it doesnt trigger the _change event.... has anyone else seen this? is there a way around it other than just dont highlight the text and change it? Also if i try to type 10 and 10 doesnt exist yet all the boxes should be empty but they stay populated with items from bin 1... but if i type a number where the first number doesnt exist yet it clears the boxes.

    I am just trying to build a down and dirty inventory system for my side gig.

    Please Login or Register  to view this content.
    Last edited by Lsxtrkiller; 04-20-2020 at 11:08 PM.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Userform Textbox change event issue

    Are you sure about 2 has a matching value in column.A?
    What your code does is that if no match, it does nothing.
    If you clear the box, it loops to the end of the range and you have empty at the bottom, so it matches to it, then clear other text boxes.

    I don't know if it is intended or accidentally though.

    Add one line
    Please Login or Register  to view this content.
    Add this sub procedure to the form modue
    Please Login or Register  to view this content.
    So that it will clear text boxes whenever change happens.

  3. #3
    Forum Contributor
    Join Date
    10-13-2015
    Location
    California
    MS-Off Ver
    Office 2013
    Posts
    138

    Re: Userform Textbox change event issue

    This works perfectly.

    Thank you. sorry for delay ive been wrapped up with my daily job and havent had a chance to work on this.

+ 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] Raise event for userform textbox
    By Un-Do Re-Do in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-02-2021, 04:29 PM
  2. [SOLVED] Trying to return userform after changing source - triggers TextBox Change event
    By nigelog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-09-2017, 10:46 AM
  3. cant keep typing in userform textbox after change event
    By jed38 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-01-2014, 09:13 AM
  4. Replies: 3
    Last Post: 05-07-2012, 09:46 PM
  5. Userform Textbox Exit Event to Run Application
    By baisty182 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-29-2010, 12:30 PM
  6. Userform textbox event that fires after I exit the textbox
    By jerseyguy1996 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-04-2010, 08:08 AM
  7. Form TextBox Event Issue
    By yellephant in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-31-2007, 12:28 PM

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