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
| Private Sub cmdValider_Click()
'Commande permettant d'afficher sur la feuille exel toutes les informations saisient par l'utulisateur
Sheets("Go Crédit").Cells(Rows.Count, "A").End(xlUp) = Me.TextStatut.Text
Sheets("Go Crédit").Cells(Rows.Count, "B").End(xlUp) = Me.TextNom.Text
Sheets("Go Crédit").Cells(Rows.Count, "C").End(xlUp) = Me.TextBox2.Text
Sheets("Go Crédit").Cells(Rows.Count, "D").End(xlUp) = Me.TextMontant.Text
Sheets("Go Crédit").Cells(Rows.Count, "E").End(xlUp) = Me.TextDurée.Text
Sheets("Go Crédit").Cells(Rows.Count, "F").End(xlUp) = Me.TextTaux.Text
'on charge en memoire la fenetre si ce n'est pas deja fait
Load frmReponse
frmReponse.TextNom.Text = TextNom.Text
frmReponse.TextStatut.Text = TextStatut.Text
frmReponse.TextTaux.Text = TextInteret.Text
frmReponse.TextMontant.Text = TextMontant.Text
frmReponse.TextDurée.Text = TextDurée.Text
frmReponse.Show False
'Il vaut mieux cacher la fenetre plutot que de la decharger (enfin c mon avis)
Me.hide
'Unload Me
End Sub |