Bonjour
Remplace le code par celui-ci. Il ignore les cases de la colonne Q qui sont vides, contenant des 0 ou de couleur jaune (6)
Sub Transfert()
Application.ScreenUpdating = False
Set F1 = Sheets("Ref")
Set F2 = Sheets("Qte")
n = F1.Cells(65536, 15).End(xlUp).Row
F1.Range("b6:b65536").ClearContents
F1.Range("o6:o65536").ClearContents
n = 6
With F2
For i = 12 To .Cells(65536, 17).End(xlUp).Row
If .Cells(i, 17).Value <> "" And .Cells(i, 17).Value > 0 And Cells(i, 17).Interior.ColorIndex <> 6 Then
'Si tu veux par rapport aux cellules contenant les sommes (en vert) change la ligne du dessus par celle du dessous sans l'apostrophe
'If .Cells(i, 17).Value <> "" And .Cells(i, 17).Value > 0 And Cells(i, 17).Interior.Color = RGB(102, 255, 153) Then
F1.Cells(n, 15) = .Cells(i, 17)
.Cells(i, 17).Copy
F1.Cells(n, 15).PasteSpecial Paste:=xlPasteValues
F1.Cells(n, 2) = .Cells(i, 2)
.Cells(i, 2).Copy
F1.Cells(n, 2).PasteSpecial Paste:=xlPasteValues
n = n + 1
End If
Next i
End With
Application.CutCopyMode = False
End Sub