+ Reply to Thread
Results 1 to 6 of 6

VBA UserForm - Have entry in TextBox fill Another TextBox by VLOOKUP

  1. #1
    Registered User
    Join Date
    07-24-2012
    Location
    Salem, VA
    MS-Off Ver
    Excel 2007
    Posts
    3

    VBA UserForm - Have entry in TextBox fill Another TextBox by VLOOKUP

    I am new to VBA programming and need some help.

    I am trying to have the user enter a COID in the TextBox tbCOID on the UserForm, then have the TextBox tbName auto filled in from a separate workbook. Just like doing a VLOOKUP.

    I've tried doing a search but cannot find anything useful. Seems all the auto populate stuff is from ComboBoxes.

    Thanks for helping!
    Attached Files Attached Files

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: VBA UserForm - Have entry in TextBox fill Another TextBox by VLOOKUP

    Welcome to the board!

    This opens the source and copies ALL the data into the Combobox. Then, after selecting COID, the fields populate with the values from the combobox.

    Click process to move it to the sheet.

    Change filepath and name in userform initialize to suit.
    Attached Files Attached Files
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    07-24-2012
    Location
    Salem, VA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: VBA UserForm - Have entry in TextBox fill Another TextBox by VLOOKUP

    Thank you very much!

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: VBA UserForm - Have entry in TextBox fill Another TextBox by VLOOKUP

    @ msquared99

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  5. #5
    Registered User
    Join Date
    07-24-2012
    Location
    Salem, VA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: VBA UserForm - Have entry in TextBox fill Another TextBox by VLOOKUP

    I'll note it Cutter.

    I was just so excited I was able to get it to work.

    Funny thing, I used some of David's code and some code I found doing a search.

    It's funny how you can miss just one little thing, some suggests something and BAM!

    Mike

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: VBA UserForm - Have entry in TextBox fill Another TextBox by VLOOKUP

    I was just so excited I was able to get it to work.
    I know the feeling.

+ 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