Custom Form Data Entry issues with recording value entered in textbox and place in column listed in combo box

  • Hello Guys,


    I created a spreadsheet with a custom form to collect data by operators. (Displayed Spreadsheet is generalized)


    An operator can enter their name in a textbox, select an item from the combo box and enter a value into the textbox next to it. What I am struggling with is whatever item is selected in the combo box (cmb1) it should put the value entered in the textbox (txtstat1) next to it, into the respective column on the Database sheet. It is not doing that. See my listed code:


    Ex)


    Operator Jeff enters the following information:


    cmb1: Option 1

    cmb2: Option 2

    cmb3: Option 6


    txtstat1: 23

    txtstat2: 38

    txtstat3: 56


    Please see "Database Example Result" Attachment for desired result.



    Any feedback is much appreciated!!!

  • Hi,


    Some guess work is required ...


    1. UserForm's Name is Start

    2. ComboBox1 has been assigned the name : cmb1

    3. Your Match instruction is looking for "value" in the worksheet


    It would appear Column A in the worksheet holds your headings ... so how can you match the value ?


    By the way, how do you populate cmb1 ?

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

    Edited once, last by Carim ().

  • Hello Carim,


    cmb1 is populated by a row source labeled "Stats" on a separate sheet named "Drop Down". Essentially what I want is when an operator on the custom form selects "Option 1" from the combo box, type in a value in the textbox next to it, it places the textbox value in the column labeled "Option 1" in the next empty row in Database sheet.

  • Hi again,


    Your objective is perfectly clear ;)


    The way you are populating your Combobox has an impact on your ability to match the Heading in the worksheet.


    Actually, the choices offered to the user in the Combobox have to be 100% identical to the strings you are using as headings in row 1 of your worksheet.... otherwise your Application.Match will never operate as expected ...

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

  • Hi,


    Have you managed to fix your problem ?


    If not, feel free to attach a sample file in your next message.


    A tiny code modification will very probably solve it quickly

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

  • Hello Carim,


    I actually ended up using a Vlookup and assigning column value to a combo box value. Sheet is running well now.

  • Hello,


    Good to hear you could fix your problem :thumbup:


    Thanks for the feedback :)

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!