I have a pretty detailed userform with lots of choices on it but I need help with two things, I've put a picture of my user form to make it easier for me to explain. I have a worksheet called students, the first row is name and the next 3 rows are numbers (exam results) I want to be able to select the student in the names drop down and then the three text boxes to the right of that display the numbers from the worksheet "students". Is this possible? I found this code on this forum and renamed it but it just created an error:
Private Sub TextBox3_Change()
TextBox3.Value = var1
var1 = WorksheetFunction.VLookup(ComboBox7.Value, Worksheets("Students").Range("Names"), 2, False)
My second question is on the right hand side, I wanted a bigger "preview pane" type textbox that displays the full text from each of the drop downs on the left depending on which one is selected (so I can word wrap them because some of them are really long)
I know how to use TextBox1.Text = ComboBox2.Text but how do I make it delete and then fill up the text box with the next combo box and then delete each time?
End Sub
Private Sub TextBox3_Change()
TextBox3.Value = var1
var1 = WorksheetFunction.VLookup(ComboBox7.Value, Worksheets("Students").Range("Names"), 2, False)
My second question is on the right hand side, I wanted a bigger "preview pane" type textbox that displays the full text from each of the drop downs on the left depending on which one is selected (so I can word wrap them because some of them are really long)
I know how to use TextBox1.Text = ComboBox2.Text but how do I make it delete and then fill up the text box with the next combo box and then delete each time?
End Sub