You are on page 1of 1

Dim i As Integer

Dim ultimo As Integer

For i = 2 To 2000
If Hoja5.Cells(i, 1) = "" Then
ultimo = i - 1
Exit For
End If
Next

For i = 2 To ultimo
If ComboBox1 = Hoja5.Cells(i, 1) Then
TextBox1 = Hoja5.Cells(i, 2)
Exit For
End If
Next

You might also like