Hi everyone!
Newbie here,
I have a small Userform with a couple of textboxes and one combobox.
The combo box is populated from a sheet named "Nombres"
So what I need is that, after the User select or change something in the combobox, the textbox "Reg4" is populated with information from a table, "Tabla2" that is located in another sheet, "Registros"
I have been trying to do it with the following code but I do not seem to figure this out:
Can you help me or do you have any suggestions?
Thanks in advance!
Happy to be learning vba
Newbie here,
I have a small Userform with a couple of textboxes and one combobox.
The combo box is populated from a sheet named "Nombres"
VBA Code:
ComboBox1.List = Sheets("Nombres").Range("A1:A130").Value
So what I need is that, after the User select or change something in the combobox, the textbox "Reg4" is populated with information from a table, "Tabla2" that is located in another sheet, "Registros"
I have been trying to do it with the following code but I do not seem to figure this out:
VBA Code:
Private Sub ComboBox1_Change()
Me.Reg4.Value = WorksheetFunction.VLookup(ComboBox1.Value, Worksheets("Registros").Range("Tabla2"), 5, False)
End Sub
Can you help me or do you have any suggestions?
Thanks in advance!
Happy to be learning vba