'***************************************
'les 3 boutons
Private Sub AddModif_Click() ' bouton mixte ajout/modif
Dim DL&
Select Case AddModif.Caption
Case "Ajouter"
DL = ActiveWorkbook.Worksheets("Lexique").Cells(Rows.Count, 1).End(xlUp).Row
With Sheets("Lexique")
.Cells(DL, "A").Value = ComboBox1.Value
.Cells(DL, "B").Value = TextBox3.Value
End With
Case "Modifier"
With ComboBox1: ligne = .List(.ListIndex, 2) - 1: End With
Sheets("Lexique").Cells(ligne, "B") = TextBox3.Value
End Select
relist ' remise a jour de la comboboxdans l'ordre et avec les donnée a jour dynamiquement
End Sub