Private Sub CommandButton1_Click()
If Not IsDate(TBDate) Then TBDate = "": TBDate.SetFocus: Exit Sub
If CBTrain.ListIndex = -1 Then CBTrain.DropDown: Exit Sub
If CBVoiture.ListIndex = -1 Then CBVoiture.DropDown: Exit Sub
If MsgBox("Voulez-vous mettre à jour les données ?", vbYesNo, "Demande de confirmation de validation") = vbNo Then Exit Sub
Dim c1 As Range, c2 As Range
Set c1 = [B:B].Find(CBTrain, , xlValues, xlWhole)
Set c2 = Intersect(c1.MergeArea.EntireRow, [C:C]).Find(CBVoiture)
c1(1, 0) = CDate(TBDate)
c2(1, 2) = TBKM.Value
Unload Me
End Sub