Bonsoir
Faites ceci :
- Supprimez la macro Private Sub TextBox8_Change()
- Modifiez le code ci-dessous
Private Sub ListBox1_Click()
' Liste des salariés
Dim Ligne As Long
Dim I As Integer
with Me
Ligne = .ListBox1.ListIndex + 3
For I = 1 To 7
.Controls("TextBox" & I) = Ws.Cells(Ligne, I)
Next I
.TextBox8 = Ws.Cells(Ligne, 8).Text
.CommandButton1.Caption = "Modifier"
.CommandButton3.Visible = True
End with ' Bouton supprimer
End Sub
Dans la Sub InitListBox(), mettez aussi un point devant ROWS.COUNT --> .Range("A" & .Rows.Count).End(xlUp).Row
Si ok, merci de cloturer le fil en clquant sur le petit v en haut à droite
Cordialement