+ Reply to Thread
Results 1 to 4 of 4

Combo Box populating Text boxes

  1. #1
    Registered User
    Join Date
    02-03-2014
    Location
    Atlanta
    MS-Off Ver
    Excel 2010
    Posts
    43

    Combo Box populating Text boxes

    Hi.
    I am new to VBA, and i am trying to have the last Combo box (ComboBox2) to populate all the information from the sheet to the userform text boxes. It all works great, but i can only get it to populate to 2 of the 8 text boxes. If i add more lines so that it will populate to the other text boxes, i am getting an "Not in Range" type of error. I would apprecate any and all help i can get. Thanks

    This is the code that i am attempting to use:

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 03-07-2014 at 12:31 AM. Reason: Code tags added, please read the forum rules. This thread was reset to put it back on the Unanswered Threads list.

  2. #2
    Registered User
    Join Date
    02-03-2014
    Location
    Atlanta
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Combo Box populating Text boxes

    I found a code that for the most part works. The only problem i am having is that the combo box is populating the text boxes, but with only the last record in the list. I need it to populate the information from what is choosen in the combo box. Any help will be appreciated.

    Please Login or Register  to view this content.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,884

    Re: Combo Box populating Text boxes

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    crossposted: http://www.mrexcel.com/forum/excel-q...combo-box.html

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    02-03-2014
    Location
    Atlanta
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Combo Box populating Text boxes

    Sample10.xlsm

    Here is what i am trying to do. I have a worksheet that has a lot of rows of information. On my Userform, i have 2 combo boxes. They look up information on the sheet (Example....when they pick the city in the first box, the second box populates with hotel choices for that city) The combo boxes work. When i click on the hotel names in the 2nd combo box, i want it to populate the information on the hotel......address, city etc.... RIght now when i click on the hotel, it keep just putting the last hotel on the sheet information in the text boxes instead of what i am choosing. Any help would be appreciated

+ 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. populating list boxes and combo boxes in a user form.
    By ahceinaej in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-10-2014, 11:54 AM
  2. [SOLVED] Populating Combo Boxes
    By shiftyspina in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-16-2013, 08:08 AM
  3. [SOLVED] Populating text boxes from a combo box choice
    By adam.hewitt5 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-27-2012, 01:15 PM
  4. Auto populating UserForm Combo and Text boxes from Validated data sets
    By ZIXILPLIX in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-04-2010, 12:55 AM
  5. Populating Combo Boxes
    By Tyrell in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2006, 10:45 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