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
| Private Sub Afficher_les_données_Click()
Application.Visible = True
End Sub
Private Sub Cacher_les_données_Click()
Application.Visible = False
End Sub
Private Sub Effacer_les_données_Click()
Unload jaugeage
jaugeage.Show
End Sub
Private Sub Enregistrer_et_quitter_Click()
ActiveWorkbook.Save
Application.Quit
End Sub
Private Sub Quitter_Click()
Unload jaugeage
End Sub
Private Sub TextBox1_Change()
TextBox1 = Date
End Sub
Private Sub userForm_Initialize()
With Me
.startUpPosition = 3
.Left = Application.Width - Me.Width
End With
End Sub
Private Sub Valider_Click()
Dim L As Integer
Application.ScreenUpdating = False
L = Sheets("jaugeage").Range("a65536").End(xlUp).Row + 1
Range("A" & L).Value = CDate(TextBox1.Value)
Range("B" & L).Value = TextBox3.Value
Range("C" & L).Value = TextBox2.Value
Range("K" & L).Value = TextBox4.Value
Range("L" & L).Value = TextBox5.Value
Range("O" & L).Value = TextBox6.Value
Range("P" & L).Value = TextBox7.Value
Range("S" & L).Value = TextBox8.Value
Range("T" & L).Value = TextBox9.Value
Range("Y" & L).Value = TextBox10.Value
Unload Me
jaugeage.Show vbModeless
End Sub |
Partager