Bonjour,
Tout au bas de ta macro ...
' ...
' ...
' ...
Next i
Call Inserer_Lignes
End Sub
Sub Inserer_Lignes()
Dim X As Integer
With Worksheets("Recap")
For X = .Cells(Rows.Count, "A").End(xlUp).Row To 2 Step -1
If Left(.Cells(X, "A"), 1) = "S" And Len(.Cells(X, "A")) > 16 Then
.Rows(X + 1 & ":" & X + 1).Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
.Cells(X + 1, "A") = "DBS"
.Cells(X + 1, "A").HorizontalAlignment = xlCenter
End If
Next X
End With
End Sub
ric