+ Reply to Thread
Results 1 to 5 of 5

TextBox change event

  1. #1
    Forum Contributor Dave H9's Avatar
    Join Date
    03-10-2011
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    418

    TextBox change event

    Hi Folks,

    Hope someone can help....

    I have three columns of data 'C' - Name, 'D' - Company, 'E' - phone #

    I have the following code to populate two text box's in a userform when the user completes the Name textbox -

    Please Login or Register  to view this content.
    My problem is that the above works perfectly until I get down to row 77. The names with higher row numbers don't seem to be found! I experimented by changes all the names to consecutive numbers with the same result.

    Any help much appreciated.

    Regards

    Daveh9
    Last edited by Dave H9; 12-16-2014 at 09:20 AM.
    - Mark your post [SOLVED] if it has been answered satisfactorily, by editing your original post using advanced mode.
    - Thank those that provided useful help, its nice and its very well appreciated...use the star on the lower left of the post

  2. #2
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: TextBox change event

    try changing this
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    your code maybe looking for the last row of data on the active sheet that may not be Sheet12, and therefore giving you the wrong number.
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: TextBox change event

    Hi Dave,

    It would be great if you could upload the workbook to take a closer look and understand better. Have you monitored the range for rAll? I wonder if column C might be empty after row 77? Or at least somehow rAll is ending at that row. Again, easier if we can see the entire thing.

    * good call Sean! I missed that completely.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  4. #4
    Forum Contributor Dave H9's Avatar
    Join Date
    03-10-2011
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    418

    Re: TextBox change event

    Sean, you are a genius. Sorted first time

    Max rep from me to you.

    As always, thanks to you and this great forum.

    Dave H9

  5. #5
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: TextBox change event

    Glad to help,
    sometimes the simple errors are the hardest to spot, and can take the longest time to resolve. We all make them!
    Thanks for the rep.

    Sean

+ 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. 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
  2. [SOLVED] Selection change event on text inside a textbox
    By jlt-uk in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-13-2014, 11:17 AM
  3. [SOLVED] Textbox Change event handler works once
    By Solus Rankin in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-30-2013, 12:28 PM
  4. TextBox Change Event HELP
    By dluhut in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 02-13-2013, 10:16 AM
  5. Textbox Change event
    By Kerno in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-03-2007, 05:08 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