Te anexo el código del form buscar
Dim h1
'
Private Sub CommandButton5_Click()
'Mostrar resultado en ListBox
Me.ListBox1.Clear
If Me.txtFiltro1.Value = "" Then Exit Sub
Filas = h1.Range("a1").CurrentRegion.Rows.Count
For i = 2 To Filas
If LCase(h1.Cells(i, "B").Value) Like "*" & LCase(Me.txtFiltro1.Value) & "*" Then
Me.ListBox1.AddItem h1.Cells(i, "A")
Me.ListBox1.List(Me.ListBox1.ListCount - 1, 1) = h1.Cells(i, "B")
Me.ListBox1.List(Me.ListBox1.ListCount - 1, 2) = h1.Cells(i, "C")
Me.ListBox1.List(Me.ListBox1.ListCount - 1, 3) = h1.Cells(i, "D")
Me.ListBox1.List(Me.ListBox1.ListCount - 1, 4) = h1.Cells(i, "E")
Me.ListBox1.List(Me.ListBox1.ListCount - 1, 5) = h1.Cells(i, "F")
Me.ListBox1.List(Me.ListBox1.ListCount - 1, 6) = h1.Cells(i, "G")
Me.ListBox1.List(Me.ListBox1.ListCount - 1, 7) = h1.Cells(i, "H")
Me.ListBox1.List(Me.ListBox1.ListCount - 1, 8) = i 'almacena el número de fila
End If
Next i
End Sub
'
Private Sub CommandButton3_Click()
'Abrir el formulario para modificar
If Me.ListBox1.ListIndex < 0 Then
MsgBox "No se ha elegido ningún registro", vbExclamation, "EXCELeINFO"
Else
frmModificar.Show
Call CommandButton5_Click
End If
End Sub
'
Private Sub UserForm_Initialize()
'Dar formato al ListBox y traer datos de la tabla
'
Set h1 = Sheets("Base")
'
For i = 1 To 8
Me.Controls("lavel" & i) = Cells(1, i).Value
Next i
With ListBox1
.ColumnCount = 8
.ColumnWidths = "60 pt;60 pt;60 pt;60 pt"
End With
End Sub
El código del form modificar
Dim h1
'
'Actualizar el registro
Private Sub CommandButton1_Click()
fila = frmBuscar.ListBox1.List(frmBuscar.ListBox1.ListIndex, 8)
For i = 1 To 8
h1.Cells(fila, i).Value = Me.Controls("hola" & i).Value
Next i
Unload Me
End Sub
'
'Llenar los cuadro de texto con los datos del registro elegido
Private Sub UserForm_Initialize()
'obtiene la fila almacenada
Set h1 = Sheets("Base")
fila = frmBuscar.ListBox1.List(frmBuscar.ListBox1.ListIndex, 8)
For i = 1 To 8
Me.Controls("hola" & i).Value = h1.Cells(fila, i)
Next i
End Sub
'
'Cerrar formulario
Private Sub CommandButton2_Click()
Unload Me
End Sub
'S aludos. Dante Amor. Recuerda valorar la respuesta. G racias