1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| Private Sub CommandButton1_Click()
Dim k As Integer
k = 0
Dim ligne As Integer
Dim col As Integer
With Feuil1.Range("A65000").End(xlUp).Offset(1, 0)
For ligne = 0 To 2
k = k + 1
.Offset(ligne, 0) = Application.Proper(F_création_simple.Controls("nom" & k))
.Offset(ligne, 1).Value = CLng(F_création_simple.annee)
.Offset(ligne, 2).Value = F_création_simple.mois
If F_création_simple.Controls("ca" & k).Value <> "" Then .Offset(ligne, 3).Value = CDbl(F_création_simple.Controls("ca" & k))
Next ligne
End With
For k = 1 To 3
F_création_simple.Controls("ca" & k).Value = ""
Next k
Me.Hide
End Sub |
Partager