Buscar y cargar combobox excel vba
[Hola a todos los experimentados en la programación

necesito cargar datos al combobox de acuerdo a la categoría.
Según el ejemplo busco la categoría B a través de un textbox y debe cargar el comboxbox (3,4,5,6)
Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
Set h1 = Sheets("Hoja1")
'
Set r = h1.Columns("A")
Set b = r.Find(TextBox1, lookat:=xlWhole)
If Not b Is Nothing Then
For i = 2 To Cells(b.Row, 3).MergeArea.Cells.Count
ComboBox1.AddItem Cells(b.Row, 3)
Next i
End If
End Sub
2 Respuestas
Respuesta de Dante Amor
1
Respuesta de Programar Excel