Bonjour, bonjour !
En respectant la hiérarchie objet d'Excel, voici une démonstration efficace :
Sub Demo()
Application.ScreenUpdating = False
With Feuil1
For R& = .Cells(1).CurrentRegion.Rows.Count To 2 Step -1
If .Cells(R, 1).Value <> .Cells(R - 1, 1).Value And .Cells(R, 3).Value > 1 Then
.Rows(R + 1).Resize(.Cells(R, 3).Value - 1).Insert xlShiftDown
.Rows(R).Copy .Rows(R + 1).Resize(.Cells(R, 3).Value - 1)
.Cells(R, 3).Resize(.Cells(R, 3).Value).Value = 1
End If
Next
End With
End Sub