+ Reply to Thread
Results 1 to 4 of 4

Populate Data off Combobox and Textbox Values

  1. #1
    Registered User
    Join Date
    07-15-2016
    Location
    Wisconsin
    MS-Off Ver
    2010
    Posts
    80

    Populate Data off Combobox and Textbox Values

    Hi Everyone

    I have a Userform (see attached) where on the 'Measurement' tab, I have a ComboBox called "RI Code" and a Text Box called Lot Size.
    Once they choose the RI Code and enter in the Lot size, I would like to have the Sample Size and Reject Qty auto-populate from the table on the sheet called RI Code.

    The RI Code Drop down has a list of
    A1-A4, B1-B4, and C1-C4
    The letter represents the sample size columns (B-D) and the numbers represent the Reject Qty columns (E-H)

    So if A3 is chosen and the lot size is 14 the Macro would:
    1. Look in column A to see if the lot size of 14 is less than or equal to any of the numbers and look across that row
    2. While its looking across that row, it will search for the RI code of A3, and look for "A" first which is in column B and find that the "Sample Size" is 2 and enter that in the textbox.
    3. While continuing to look across the same row and still searching for the RI Code of A3, it will look for "3" which is in column G and find the "Reject Qty" is 1, and enter that in the textbox.

    I hope this makes sense. Its and index match type of look up with multiple variables

    Thank you,
    Abby
    Attached Files Attached Files

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Populate Data off Combobox and Textbox Values

    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    07-15-2016
    Location
    Wisconsin
    MS-Off Ver
    2010
    Posts
    80

    Re: Populate Data off Combobox and Textbox Values

    I am so excited! Works perfectly, thank you so much for your help.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Populate Data off Combobox and Textbox Values

    .........................
    Thanks.png

+ 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] populate values into textbox on userform based on multiple combobox and two optionbuttons
    By ABDELFATTA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-15-2020, 12:52 AM
  2. [SOLVED] Add (Number) in TextBox to populate ComboBox
    By steve.whoosh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-16-2017, 10:48 AM
  3. [SOLVED] Textbox - populate with month name and values based on Combobox selection
    By Lukael in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-02-2015, 08:09 AM
  4. Replies: 0
    Last Post: 08-18-2015, 04:13 PM
  5. [SOLVED] VBA export data to path dpends upon 1 combobox values sheets & 2 textbox date values
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-16-2014, 02:21 AM
  6. [SOLVED] Excel Userform: Populate other controls (i.e. textbox & combobox) based on combobox select
    By MileHigh_PhD in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-22-2013, 04:50 PM
  7. Combobox populate textbox
    By samtwilliams in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2007, 10:27 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