Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Dim i As Integer
cbo_Nombre.SetFocus
Exit Sub
End If
cbo_Nombre.SetFocus
Exit Sub
End If
For i = 2 To Len(cbo_Nombre.Text)
cbo_Nombre.SetFocus
Exit Sub
End If
Next
Sheets("Clientes").Activate
fCliente = nCliente(cbo_Nombre.Text)
If fCliente = 0 Then
Loop
Else
End If
Application.ScreenUpdating = False
ActiveCell = cbo_Nombre
ActiveCell.Offset(0, 1) = txt_Direccion
ActiveCell.Offset(0, 2) = txt_Telefono
ActiveCell.Offset(0, 3) = txt_ID
ActiveCell.Offset(0, 4) = txt_Email
ActiveCell.Offset(0, 5) = ArchivoIMG
Application.ScreenUpdating = True
LimpiarFormulario
cbo_Nombre.SetFocus
End Sub
fCliente = nCliente(cbo_Nombre.Text)
If fCliente = 0 Then
MsgBox "El cliente que usted quiere eliminar no existe", vbInformation + vbOKOnly
cbo_Nombre.SetFocus
Exit Sub
End If
If MsgBox("¿Seguro que quiere eliminar este cliente?", vbQuestion + vbYesNo) = vbYes Then
Cells(fCliente, 1).Select
ActiveCell.EntireRow.Delete
LimpiarFormulario
cbo_Nombre.SetFocus
End If
End Sub
Private Sub cbo_Nombre_Change()
Sheets("Clientes").Activate
Cells(cbo_Nombre.ListIndex + 2, 1).Select
txt_Direccion = ActiveCell.Offset(0, 1)
txt_Telefono = ActiveCell.Offset(0, 2)
txt_ID = ActiveCell.Offset(0, 3)
txt_Email = ActiveCell.Offset(0, 4)
Else
txt_Direccion = ""
txt_Telefono = ""
txt_ID = ""
txt_Email = ""
ArchivoIMG = ""
fotografia.Picture = LoadPicture("")
End If
End Sub
Me.TextBox1.SetFocus
Exit Sub
Errores:
End Sub