J'ai ajouté dans la feuil2 une colonne "NOMBRES" qui prend ainsi compte de ta demande !
http://cjoint.com/?BEEwopjfICn
La macro a été modifiée en conséquence :
Sub Copie_Defaut()
Dim j As Integer
Dim i As Integer
Dim k As Integer
Application.ScreenUpdating = False
For i = 2 To 20000
Sheets("Feuil1" ).Select
Range("A2" ).Select
If Cells(i, 1) = "" Then
Range("D:D" ).ClearContents
Exit Sub
End If
If Cells(i, 3).Text = "APP" And Cells(i, 4) = "" Then
Cells(i, 4) = "X"
Range(Cells(i, 1), Cells(i, 2)).Copy
Sheets("Feuil2" ).Select
Range("A1" ).Select
ActiveSheet.Paste
Application.CutCopyMode = False
For j = 3 To 2000
If Cells(j, 1) = "" Or Cells(j, 1) = Range("A1" ) Then
Cells(j, 1) = Range("A1" )
For k = 2 To 2000 Step 2
If Cells(j, k) = Range("B1" ) Then
Cells(j, k + 1) = Cells(j, k + 1) + 1
Exit For
ElseIf Cells(j, k) = "" Then
Cells(j, k) = Range("B1" )
Cells(j, k + 1) = 1
Exit For
Else
Cells(j, k + 2).Select
End If
Next k
Range("A1:B1" ).ClearContents
Exit For
Else
Cells(j + 1, k).Select
End If
Next j
Else
Cells(i + 1, 1).Select
End If
Next i
Application.ScreenUpdating = True
End Sub