Beruflich Dokumente
Kultur Dokumente
Private Sub BotnAceptar1_Click() If CampoNombre.Text = "" Then MsgBox "Por favor inserte su nombre" ElseIf CampoCiudad.Text = "" Then MsgBox "Por favor inserte ciudad"
Private Sub CampoNombre_Change() Cells(1, 2) = CampoNombre.Text End Sub '2 Private Sub BotnEdad_Change() Edad.Text = BotnEdad.Value End Sub
Private Sub BotnAceptar2_Click() If CheckBox1.Value = True Then Range("B1:B3").Font.Bold = True If BotnHombre.Value = True Then Range("B3") = "Hombre" If BotnMujer.Value = True Then Range("B3") = "Mujer" If BotnDesconocido.Value = True Then Range("B3") = "Desconocido"
Range("B4") = BotnEdad.Value End Sub '3 Private Sub BotnCerrar2_Click() Unload Formulario End Sub
Private Sub BotnAceptar3_Click() Range("B5").Value = ListBox1.ListIndex + 1 & "-" & ListBox1.Value Unload Formulario End Sub
Private Sub UserForm_Initialize() With ListBox1 .AddItem "Amarillo" .AddItem "Verde" .AddItem "Rojo" .AddItem "Azul"