Re,
Il y a des incohérences dans le code , d'où des lignes inscrites en contrebas
Le voici corrigé
Private Sub CommandButton2_Click()
' Variables Objet
Dim Sht As Worksheet, LObj As ListObject
Dim List_nombre As Long
Dim Ligne As Long, Dl As Long
List_nombre = Me.list_order.ListCount - 1
If Me.list_order.ListCount >= 0 Then
'demande confirmation
If MsgBox(" voulez vous ajouter un mouvement?", vbYesNo) = vbYes Then
Set Sht = Sheets("Entrée - sortie")
Set LObj = Sht.ListObjects(1)
For Ligne = 0 To List_nombre
LObj.ListRows.Add
Dl = LObj.HeaderRowRange.Row + LObj.ListRows.Count
'insere infos
Sht.Range("B" & Dl) = "test"
Next Ligne
Set LObj = Nothing: Set Sht = Nothing
ThisWorkbook.Save
Unload Add_pneumouv
End If
Else
MsgBox "Pas de commande disponible"
End If
End Sub
A+