Posts by Laney

    Thanks Yongle


    So to further explain - the strFind is a combobox list of Criteria populated by the user on another userform. It then asks the user to select how may sub-criteria they would like to enter and depending on the number, a row of x number of 3 textboxes are created (sub-criteria title, min marks, max marks) which are to be written to the worksheet adjacent to the chosen criteria. For example:


    CriteriaMin MarksMax MarksSub-CriteriaMin MarksMax MarksSub-CriteriaMin MarksMax Marks
    C1100200SBC150100SBC250100


    What's happening when I run the code is:


    CriteriaMin MakrsMax MarksSub-CriteriaMin MarksMax MarksSub-CriteriaMin MarksMax Marks
    C1100200SBC250100


    I did edited the code to reflect what you had written above but it's the same thing that's happening

    Thanks so much for replying Yongle :)


    I did as you suggested (I hope) but it is still just pulling in the data from the last row of textboxes?


    Hi,


    Hope you can help me!


    I'm trying to find a value in a range that matches combobox selection and then adds the value from a row of 3 textboxes to the last empty columns on that row. When I populate the textboxes (lets say I have two rows of dynamically created textboxes), it only takes the data from the last row I entered


    Here's the code: