Private Sub BT
Private Sub BT
Private Sub BT
Range("B4").EntireRow.Insert
Range("B4").Value = Me.txt_codigo.Value
Range("C4").Value = Me.txt_nombre.Value
Range("D4").Value = Me.txt_apellido.Value
Range("E4").Value = Me.txt_sexo.Value
Range("F4").Value = Me.txt_edad.Value
txt_codigo.Value = Range("B2").Value
Me.txt_nombre.Value = Empty
Me.txt_apellido.Value = Empty
Me.txt_sexo.Value = Empty
Me.txt_edad.Value = Empty
Miformulario.Height=395
Me.txt_nombre.Value = Empty
Me.txt_apellido.Value = Empty
Me.txt_sexo.Value = Empty
Me.txt_edad.Value = Empty
End Sub
If LISTA.ListIndex = -1 Then
Else
miformulario.Height = 395
Me.BT_AGREGAR.Enabled = False
Me.BT_MODIFICAR.Enabled = True
End If
End Sub
Valor_buscado = txt_codigo.Value
If Lista.ListIndex = -1 Then
Else
End if
End Sub
valor_buscando = Me.txt_codigo
Set fila = Sheets("BD").Range("B:B").Find(valor_buscando, lookat:=xlWhole)
linea = fila.Row
End Sub
miformulario.Height = 395
Me.BT_MODIFICAR.Enabled = False
Me.txt_codigo.Value=Rango(“B2”).Value
Me.BT_AGREGAR.Enabled=true
Me.txt_nombre.Value = Empty
Me.txt_apellido.Value = Empty
Me.txt_sexo.Value = Empty
Me.txt_edad.Value = Empty
End Sub
codigo = LISTA.List(LISTA.ListIndex, 0)
Me.txt_codigo.Value = código
Me.BT_AGREGAR.Enabled = False
Me.BT_MODIFICAR.Enabled = True
End Sub
codigo = txt_codigo.Value
Me.LISTA.RowSource = "CLIENTES"
Me.LISTA.ColumnCount = 5
miformulario.Height = 200
End Sub
Lista = Clear
Lista.RowsRoucer
MsgBox(munerodedatos)
End Sub