1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
| [A1].Select
Do While ActiveCell.FormulaR1C1 <> ""
ActiveCell.Offset(1, 0).Select
Loop
' se positionner sur la bonne cellule
ActiveCell.FormulaR1C1 = Text_nom.Text
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = Text_prenom.Text
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = Text_mail.Text
ActiveCell.Offset(0, 1).Select
ActiveCell.FormulaR1C1 = Text_tel.Text
ActiveCell.Offset(0, 1).Select
If RBT_homme.Value = True Then
ActiveCell.FormulaR1C1 = "Homme"
Else
ActiveCell.FormulaR1C1 = "Femme"
End If
ActiveCell.Offset(0, 1).Select
If CBX_marie.Value = True Then
ActiveCell.FormulaR1C1 = "Marié(e)"
Else
ActiveCell.FormulaR1C1 = "Celibataire"
End If
Me.Hide
Text_prenom.Text = ""
Text_nom.Text = ""
Text_mail.Text = ""
Text_tel.Text = ""
End Sub |
Partager