Oui et non parce que je viens de voir qu'il y a aussi que vous inversez colonne et ligne dans l'instruction CELL
Votre code corrigé :
Private Sub validation_Click() 'Validation mouvement 'Dan
Dim derligne As Long
Dim i As Integer
If Listmouv.ListCount = 0 Then
MsgBox "Ajoutez à la liste"
Exit Sub
End If
Select Case Combomouv1
Case Is = "Attente de livraison"
With Sheets("MAGASIN")
derligne = .Cells(Rows.Count, 1).End(xlUp).Row + 1
For i = 0 To Listmouv.ListCount - 1
.Range("A" & derligne) = Listmouv.List(i, 0) 'au profit de
.Range("B" & derligne) = Listmouv.List(i, 1) 'code projet
.Range("C" & derligne) = Listmouv.List(i, 2) 'pour le site
.Range("D" & derligne) = Listmouv.List(i, 3) 'famille article
.Range("E" & derligne) = Listmouv.List(i, 4) 'forunisseur
.Range("F" & derligne) = Listmouv.List(i, 5) 'reference
.Range("G" & derligne) = Listmouv.List(i, 6) 'num ACDE
.Range("I" & derligne) = Listmouv.List(i, 8) 'prix unitaire
.Range("I" & derligne).NumberFormat = "#,##0.00 €"
.Range("K" & derligne).NumberFormat = "#,##0.00 €"
.Range("L" & derligne) = Listmouv.List(i, 11) 'emplacement
.Range("M" & derligne) = Listmouv.List(i, 13) 'qte max
.Range("N" & derligne) = Listmouv.List(i, 13) 'qte attente
derligne = derligne + 1
Next i
MsgBox "L'attente de livraison est enregistré dans le magasin"
End With
Case Is = "Entrée"
i = 2
With Sheets("MAGASIN")
Do While .Cells(i, 7).Value <> ""
If .Cells(i, 7).Value = Combomouv4.Value Then
.Cells(i, 10).Value = .Cells(i, 14).Value
.Cells(i, 14).Clear
End If
i = i + 1
Loop
End With
MsgBox "Entrée validé"
End Select
Unload LOGISTIQUE
LOGISTIQUE.Show
End Sub
edit : Dans la première partie du code vous avez deux fois
Listmouv.List(i, 13)
Normal ?